hive一些問題-創(chuàng)新互聯(lián)

hadoop client/hive client去連接 微軟云Azure上的HDI報(bào)錯:

創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供獨(dú)山子網(wǎng)站建設(shè)、獨(dú)山子做網(wǎng)站、獨(dú)山子網(wǎng)站設(shè)計(jì)、獨(dú)山子網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、獨(dú)山子企業(yè)網(wǎng)站模板建站服務(wù),10余年獨(dú)山子做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。

hive --service metastore

Exception in thread "main" org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.

Getting MissingTableException: Required table missing VERSION when starting hive on mysql

根本原因是這里使用的是HDI

1、這兩個配置文件都改(centos和ubuntu有區(qū)別)

# vim /usr/hdp/2.2.0.0-2041/hive/conf/hive-site.xml

# vim /etc/hive/conf/hive-site.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration supports_final="true">
<!-- Hive Configuration can either be stored in this file or in the hadoop configuration files
 that are implied by Hadoop setup variables.                               Aside from Hadoop setup variables - this file is provided as a convenience so that Hive
 users do not have to edit hadoop configuration files (that may be managed as a centralized 
 resource).    
-->
<property>
    <name>hive.metastore.warehouse.dir</name>
    <value>/hive/warehouse</value>
    <description>location of default database for the warehouse</description>
  </property>
  <property>
   <name>hive.metastore.uris</name>
    <value>thrift://headnodehost:9083</value>
    <description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
  </property>
</configuration>

2、修改hosts

vim /etc/hosts

內(nèi)容是來自于HDI的windows機(jī)器上的配置

 10.0.2.7        headnodehost    # SlaveNodeManager
 10.0.2.7        jobtrackerhost  # SlaveNodeManager
 10.0.2.7        namenodehost    # SlaveNodeManager

hive普通用戶報(bào)錯:

1、報(bào)錯

Booting Derby (version The Apache Software Foundation - Apache Derby - 10.10.1.1 - (1458268)) instance a816c00e-0154-2ed3-cbb2-00000e1ebc98

on database directory /var/lib/hive/metastore/metastore_db in READ ONLY mode with class loader sun.misc.Launcher$AppClassLoader@7cc355be.

Loaded fromfile:/usr/hdp/2.2.0.0-2041/hive/lib/derby-10.10.1.1.jar.

問題:明顯是metastore數(shù)據(jù)庫read only,沒有寫權(quán)限

解決辦法:

# cd /var/lib/hive/metastore/

# chmod -R a+w metastore_db/

2、報(bào)錯如下,但是hive還是進(jìn)來了

Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.1.1 - (1458268): instance a816c00e-0154-3155-87b8-00000e0b5a08

on database directory /var/lib/hive/metastore/metastore_db with class loader sun.misc.Launcher$AppClassLoader@7cc355be

Loaded from file:/usr/hdp/2.2.0.0-2041/hive/lib/derby-10.10.1.1.jar

java.vendor=Oracle Corporation

java.runtime.version=1.8.0_51-b16

user.dir=/var/lib/hive

os.name=Linux

os.arch=amd64

os.version=2.6.32-573.1.1.el6.x86_64

derby.system.home=null

Database Class Loader started - derby.database.classpath=''

hive>

  >

還是權(quán)限問題:/var/lib/hive# chown -R hive:hive metastore/

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

本文標(biāo)題:hive一些問題-創(chuàng)新互聯(lián)
鏈接URL:http://muchs.cn/article30/dspppo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、虛擬主機(jī)、微信公眾號品牌網(wǎng)站建設(shè)、網(wǎng)站維護(hù)、手機(jī)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)