Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1092

There is a carriage return in the hiveserver2 ha documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      There is a carriage return in the document before zookeeperNamespace in the hiveserver2 ha docs.

      <provider>
      <role>ha</role>
      <name>HaProvider</name>
      <enabled>true</enabled>
      <param>
      <name>HIVE</name>
      <value>maxFailoverAttempts=3;failoverSleep=1000;enabled=true;zookeeperEnsemble=machine1:2181,machine2:2181,machine3:2181;
      zookeeperNamespace=hiveserver2</value>
      </param>
      </provider>

      with this carriage return zookeeperNamespace becomes null in knox causing the stacktrace.

      Caused by: java.lang.NullPointerException
      at java.net.URI$Parser.parse(URI.java:3042)
      at java.net.URI.<init>(URI.java:588)
      at java.net.URI.create(URI.java:850)
      at org.apache.hadoop.gateway.ha.provider.impl.DefaultURLManager.markFailed(DefaultURLManager.java:87)
      at org.apache.hadoop.gateway.ha.provider.impl.DefaultHaProvider.markFailedURL(DefaultHaProvider.java:91)
      at org.apache.hadoop.gateway.ha.dispatch.DefaultHaDispatch.failoverRequest(DefaultHaDispatch.java:107)
      at org.apache.hadoop.gateway.ha.dispatch.DefaultHaDispatch.executeRequest(DefaultHaDispatch.java:94)

      Please correct the documentation so that the zookeeper line is all together without the carriage return.
      http://knox.apache.org/books/knox-0-13-0/user-guide.html#HiveServer2+HA

        Attachments

          Activity

            People

            • Assignee:
              smore Sandeep More
              Reporter:
              dvillarreal David Villarreal
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: