|
| 1 | +--- |
| 2 | +title: Apache Phoenix connectivity issues in Azure HDInsight |
| 3 | +description: Apache Phoenix connectivity issues in Azure HDInsight |
| 4 | +ms.service: hdinsight |
| 5 | +ms.topic: troubleshooting |
| 6 | +author: hrasheed-msft |
| 7 | +ms.author: hrasheed |
| 8 | +ms.date: 08/07/2019 |
| 9 | +--- |
| 10 | + |
| 11 | +# Scenario: Apache Phoenix connectivity issues in Azure HDInsight |
| 12 | + |
| 13 | +This article describes troubleshooting steps and possible resolutions for issues when interacting with Azure HDInsight clusters. |
| 14 | + |
| 15 | +## Issue |
| 16 | + |
| 17 | +Unable to connect to Apache HBase with Apache Phoenix. Reasons may vary. |
| 18 | + |
| 19 | +## Cause: Incorrect IP |
| 20 | + |
| 21 | +Incorrect IP of active zookeeper node. |
| 22 | + |
| 23 | +### Resolution |
| 24 | + |
| 25 | +The IP of active zookeeper node can be identified from Ambari UI, by following the links to **HBase -> Quick Links -> ZK*** **(Active) -> Zookeeper Info**. Correct as needed. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## Cause: SYSTEM.CATALOG table offline |
| 30 | + |
| 31 | +When running commands such as `!tables`, you receive an error message similar to: |
| 32 | + |
| 33 | +``` |
| 34 | +Error while connecting to sqlline.py (Hbase - phoenix) Setting property: [isolation, TRANSACTION_READ_COMMITTED] issuing: !connect jdbc:phoenix:10.2.0.7 none none org.apache.phoenix.jdbc.PhoenixDriver Connecting to jdbc:phoenix:10.2.0.7 SLF4J: Class path contains multiple SLF4J bindings. |
| 35 | +``` |
| 36 | + |
| 37 | +When running commands such as `count 'SYSTEM.CATALOG'`, you receive an error message similar to: |
| 38 | + |
| 39 | +``` |
| 40 | +ERROR: org.apache.hadoop.hbase.NotServingRegionException: Region SYSTEM.CATALOG,,1485464083256.c0568c94033870c517ed36c45da98129. is not online on 10.2.0.5,16020,1489466172189) |
| 41 | +``` |
| 42 | + |
| 43 | +### Resolution |
| 44 | + |
| 45 | +Restart the HMaster service on all the zookeeper nodes from Ambari UI. |
| 46 | + |
| 47 | +1. Go to **HBase -> Active HBase Master** link in summary section of HBase. |
| 48 | + |
| 49 | +1. In **Components** section, restart the HBase Master service. |
| 50 | + |
| 51 | +1. Repeat the above steps for remaining **Standby HBase Master** services. |
| 52 | + |
| 53 | +It can take up-to 5 minutes for HBase Master service to stabilize and finish the recovery. Once the `SYSTEM.CATALOG` table is back to normal, the connectivity issue to Apache Phoenix should get resolved automatically. |
| 54 | + |
| 55 | +## Next steps |
| 56 | + |
| 57 | +If you didn't see your problem or are unable to solve your issue, visit one of the following channels for more support: |
| 58 | + |
| 59 | +* Get answers from Azure experts through [Azure Community Support](https://azure.microsoft.com/support/community/). |
| 60 | + |
| 61 | +* Connect with [@AzureSupport](https://twitter.com/azuresupport) - the official Microsoft Azure account for improving customer experience. Connecting the Azure community to the right resources: answers, support, and experts. |
| 62 | + |
| 63 | +* If you need more help, you can submit a support request from the [Azure portal](https://portal.azure.com/?#blade/Microsoft_Azure_Support/HelpAndSupportBlade/). Select **Support** from the menu bar or open the **Help + support** hub. For more detailed information, review [How to create an Azure support request](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request). Access to Subscription Management and billing support is included with your Microsoft Azure subscription, and Technical Support is provided through one of the [Azure Support Plans](https://azure.microsoft.com/support/plans/). |
0 commit comments