Hiveserver should use a default port if not specified
-----------------------------------------------------
Key: HIVE-550
URL: https://issues.apache.org/jira/browse/HIVE-550
Project: Hadoop Hive
Issue Type: Bug
Components: Server Infrastructure
Affects Versions: 0.4.0
Reporter: Eric Hwang
Priority: Minor
Fix For: 0.4.0
When launched without a port number, hiveserver throws the following java error:
$ ./hive --service hiveserver
Starting Hive Thrift Server
java.lang.NumberFormatException: For input string: "-hiveconf"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.apache.hadoop.hive.service.HiveServer.main(HiveServer.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:166)
at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.mapred.JobShell.main(JobShell.java:220)
Ideally the code should choose a default port or at least put up an appropriate
error message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.