You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Bill Graham (JIRA)" <ji...@apache.org> on 2009/08/18 23:53:14 UTC

[jira] Created: (HIVE-765) HiveServer doesn't start properly with auxlib directory

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-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.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-765) HiveServer doesn't start properly with auxlib directory

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ning Zhang reassigned HIVE-765:
-------------------------------

    Assignee: Ning Zhang

> 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
>            Assignee: Ning Zhang
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-765) HiveServer doesn't start properly with auxlib directory

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ning Zhang resolved HIVE-765.
-----------------------------

    Resolution: Fixed

fixed as part of Hive-941

> 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
>            Assignee: Ning Zhang
>
> 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.
-
You can reply to this email to add a comment to the issue online.