[ 
https://issues.apache.org/jira/browse/HIVE-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-765:
--------------------------------

    Fix Version/s: 0.5.0

> HiveServer doesn't start properly with auxlib directory
> -------------------------------------------------------
>
>                 Key: HIVE-765
>                 URL: https://issues.apache.org/jira/browse/HIVE-765
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Bill Graham
>            Assignee: Ning Zhang
>             Fix For: 0.5.0
>
>
> See http://www.mail-archive.com/hive-user@hadoop.apache.org/msg01303.html
> The org.apache.hadoop.hive.service.HiveServer.main(String[] args) method has 
> code that looks like this:
> int port = 10000;
> if (args.length >= 1) {
>   port = Integer.parseInt(args[0]);
> }
> But ./bin/hive --service hiveserver (which runs 
> ./bin/hivebin/ext/hiveserver.sh) will run the following if the auxlib/ 
> directory is present:
> /path/to/hadoop jar -libjars file:///path/to/hive/auxlib/some_jar.jar 
> /path/to/hive/lib/hive_service.jar org.apache.hadoop.hive.service.HiveServer 
> -hiveconf hive.aux.jars.path=file:///path/to/hive/auxlib/some_jar.jar
> This cause an error like so:
> java.lang.NumberFormatException: For input string: "-hiveconf"
> The workaround is to be explicit with the port: 
> HIVE_PORT=10000 ./bin/hive --service hiveserver

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to