[ 
https://issues.apache.org/jira/browse/HIVE-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848838#action_12848838
 ] 

Paul Yang commented on HIVE-1268:
---------------------------------

Looks good +1

Tested on port 12345

{code}
METASTORE_PORT=12345 hive --service metastore
Starting Hive Metastore Server
10/03/23 11:30:45 INFO metastore.HiveMetaStore: Started the new metaserver on 
port [12345]...
10/03/23 11:30:45 INFO metastore.HiveMetaStore: Options.minWorkerThreads = 200
10/03/23 11:30:45 INFO metastore.HiveMetaStore: Options.maxWorkerThreads = 
2147483647
10/03/23 11:30:52 INFO metastore.HiveMetaStore: 0: get_table : db=default 
tbl=tmp_pyang_t
10/03/23 11:30:52 INFO metastore.HiveMetaStore: 0: Opening raw store with 
implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
{code}

> Cannot start metastore thrift server on a specific port
> -------------------------------------------------------
>
>                 Key: HIVE-1268
>                 URL: https://issues.apache.org/jira/browse/HIVE-1268
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: bc Wong
>            Assignee: bc Wong
>         Attachments: HIVE-1268-1.patch
>
>
> The code to get the port number is broken. Doh.
> {code}
> 14:07:55[dsom:dist]$ METASTORE_PORT=12345 bin/hive --service metastore
> Starting Hive Metastore Server
> Exception in thread "main" java.lang.NullPointerException
>         at 
> org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:960)
>         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:156)
> {code}

-- 
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