HiveServer doesn't start properly with auxlib directory
-------------------------------------------------------

                 Key: HIVE-765
                 URL: https://issues.apache.org/jira/browse/HIVE-765
             Project: Hadoop Hive
          Issue Type: Bug
            Reporter: Bill Graham


See http://www.mail-archive.com/hive-u...@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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to