Kokila N created HIVE-28973:
-------------------------------
Summary: Docker: Metastore service fails to start unless --verbose
is explicitly set
Key: HIVE-28973
URL: https://issues.apache.org/jira/browse/HIVE-28973
Project: Hive
Issue Type: Bug
Reporter: Kokila N
Assignee: Kokila N
*Command* : docker run -d -p 9083:9083 --env SERVICE_NAME=metastore --name
metastore-standalone apache/hive:${HIVE_VERSION}
{code:java}
exec /opt/hive/bin/hive --skiphadoopversion --skiphbasecp '' --service metastore
.
.
.
This usage has been deprecated, consider using the new command line syntax (run
with -h to see usage information)
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at
org.apache.hadoop.hive.metastore.HiveMetastoreCli.parse(HiveMetastoreCli.java:59)
at
org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:241)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.hadoop.util.RunJar.run(RunJar.java:330)
at org.apache.hadoop.util.RunJar.main(RunJar.java:245) {code}
In [https://github.com/apache/hive/pull/5797] To fix static analysis issue,
variables in scripts were surrounded by double quotes.
Due to this ,
if verbose is true, then we will have "–verbose" in the command , if not set it
will be empty "".
This leads to parsing error as mentioned above.
Starting the Metastore docker without verbose will give the error and the
service does not start.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)