Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.13.0
-
None
-
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