免费观看又色又爽又黄的小说免费_美女福利视频国产片_亚洲欧美精品_美国一级大黄大色毛片

hive一些問題

hadoop client/hive client去連接 微軟云Azure上的HDI報錯:

讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業的熱愛。我們立志把好的技術通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:國際域名空間、網站空間、營銷軟件、網站建設、若羌網站維護、網站推廣。

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有區別)

# 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

內容是來自于HDI的windows機器上的配置

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

hive普通用戶報錯:

1、報錯

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數據庫read only,沒有寫權限

解決辦法:

# cd /var/lib/hive/metastore/

# chmod -R a+w metastore_db/

2、報錯如下,但是hive還是進來了

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> 

   > 

還是權限問題:/var/lib/hive# chown -R hive:hive metastore/

網站欄目:hive一些問題
網站路徑:http://newbst.com/article42/jhsdhc.html

成都網站建設公司_創新互聯,為您提供靜態網站用戶體驗手機網站建設網站維護電子商務品牌網站建設

廣告

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

外貿網站建設