2017-05-31 16 views
1

Mac Sierraでハイブを実行し、基本的にクライアントハイブが動作します。しかし、私がhiveserver2を起動すると少し動いて終了します。私は2つの方法によりhiveserver2開始し、いずれかのhiveserver2が起動してからすばやく停止します

hive --service hiveserver2 

それとも

$HIVE_HOME/bin/hiveserver2 

結果と出力はどちらの場合も同じです。

SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/usr/local/Cellar/hive/2.1.0/libexec/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/local/Cellar/hadoop/2.8.0/libexec/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] 

は、おそらく私はいくつかのログを取得する必要がありますが、私できません。私は次のようにハイブ-site.xmlのログイン設定:

<property> 
<name>hive.server2.logging.operation.enabled</name> 
<value>true</value> 
<description>When true, HS2 will save operation logs and make them available for clients</description> 
</property> 
<property> 
<name>hive.server2.logging.operation.log.location</name> 
<value>/usr/local/Cellar/hive/2.1.0/libexec/log</value> 
<description>Top level directory where operation logs are stored if logging functionality is enabled</description> 
</property> 
<property> 
<name>hive.server2.logging.operation.level</name> 
<value>VERBOSE</value> 
... 

はしかし、私はそれは間違いなくオンまたはオフだ場合は、ビーラインを使用してチェックする必要があるログディレクトリに

+0

が別のポートで実行してみてください(デフォルトのポートは10000です)。 hive --service hiveserver2 --hiveconf hive.server2.thrift.port = 10001 – pkgajulapalli

+0

同じ問題 –

答えて

0

を作成し何も表示されません。一例ではHiveServer2プロセスは、ポート52000のlocalhost上で実行されている:

$ beeline 
beeline> !connect jdbc:hive2://localhost:52000 username password org.apache.hive.jdbc.HiveDriver 
0: jdbc:hive2://localhost:52000> 

もう一つは、documentationのようにスタートを使用することです。 HiveServer2停止するには

$ sudo service hive-server2 start 

:HiveServer2を開始するには

$ sudo service hive-server2 stop 
関連する問題