2014-02-14 96 views
0

我最近開始研究大數據 - Hadoop技術。我一直在研究Hbase命令。我開始研究cloudera virtualbox平臺。我無法執行「快照」命令。大數據 - Hbase

hbase> snapshot 'users','users_snapshot' 

我得到一個錯誤作爲

ERROR: java.io.IOExecption: java.lang.unsupportedOperationException:
To use snapshots, you must add to the hbase-site.xml of the Hbase Master: 'hbase.snapshot.enabled' property with value 'true'

事實上,我已經添加下列行

<property> 
    <name>hbase.snapshot.enabled</name> 
    <value>true</value> 
</property> 
中在/ etc/HBase的/ conf文件夾中獲得的HBase的-site.xml中

並保存。 我已經在cloudera管理器中重新啓動了hbase實例。但仍然有同樣的錯誤。當我查看hbase-master時,它並未在hbase配置文件中顯示此屬性。請任何機構可以幫助我解決這個問題。

由於 BIPS

+0

請任何機構告訴我「快照」命令如何在Hbase(大數據 - hadoop)中工作。我需要知道運行此命令所需的配置......謝謝 –

回答

0

在CDH,HBase的配置的配置文件的情況下, 'HBase的-site.xml中' 在 '等/ HBase的/ CONF' 不使用HBase的服務器進程,而是由客戶端的HBase像HBase的殼。從Cloudera Manager Manual

Administrators are sometimes surprised that modifying /etc/hadoop/conf and then restarting HDFS has no effect. That is because service instances started by Cloudera Manager do not read configurations from the default locations. To use HDFS as as an example, when not managed by Cloudera Manager, there would usually be one HDFS configuration configuration per host, located at /etc/hadoop/conf/hdfs-site.xml.Server-side daemons and clients running on the same host would all use that same configuration.

Cloudera Manager distinguishes between server and client configuration. In the case of HDFS , the file /etc/hadoop/conf/hdfs-site.xml contains only configuration relevant to an HDFS client. That is, by default,if you run a program that needs to communicate with Hadoop , it will get the addresses of the NameNode and JobTracker, and other important configurations, from that directory. A similar approach is taken for /etc/hbase/conf and /etc/hive/conf

由於您使用的Cloudera VM,我建議你通過使用「Cloudera的管理器」來修改HBase的相應的配置。這已經被討論here