wiki:waue/2009/1007
Cloudera Desktop

詳細介紹、功能、截圖 於此網頁 http://www.cloudera.com/desktop/

一、安裝

1.1 加入套件庫

新增一個檔案 /etc/apt/sources.list.d/cloudera.list,內容如下

# $DISTRO=版本名稱,如hardy,可用 lsb_release -c 來查看
deb http://archive.cloudera.com/debian $DISTRO-testing contrib
deb-src http://archive.cloudera.com/debian $DISTRO-testing contrib

1.2 安裝cdh2 (hadoop0.20) & desktop

$ wget http://archive.cloudera.com/debian/archive.key | sudo apt-key add -
$ apt-get update 
$ sudo apt-get install hadoop-0.20 (有多少裝多少)
$ apt-get install cloudera-desktop cloudera-desktop-plugins

二、設定

2.1 修改 hdfs-site.xml

加入以下到 hdfs-site.xml

<property>
  <name>dfs.namenode.plugins</name>
  <value>org.apache.hadoop.thriftfs.NamenodePlugin</value>
  <description>Comma-separated list of namenode plug-ins to be activated.
  </description>
</property>
<property>
  <name>dfs.datanode.plugins</name>
  <value>org.apache.hadoop.thriftfs.DatanodePlugin</value>
  <description>Comma-separated list of datanode plug-ins to be activated.
  </description>
</property>
<property>
  <name>dfs.thrift.address</name>
  <value>0.0.0.0:9090</value>
</property>

2.2 修改 mapred-site.xml

加入以下到 mapred-site.xml:

<property>
  <name>jobtracker.thrift.address</name>
  <value>0.0.0.0:9290</value>
</property>
<property>
  <name>mapred.jobtracker.plugins</name>
  <value>org.apache.hadoop.thriftfs.ThriftJobTrackerPlugin</value>
  <description>Comma-separated list of jobtracker plug-ins to be activated.
  </description>
</property>

2.3 修改 hadoop-metrics.properties

加入以下到 hadoop-metrics.properties :

# Exposes /metrics URL endpoint for metrics information.
dfs.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
mapred.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
jvm.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
rpc.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext

2.4 重開 hadoop 叢集與 cloudera desktop

$ /etc/init.d/hadoop-0.20-namenode start
$ /etc/init.d/hadoop-0.20-datanode start
$ /etc/init.d/hadoop-0.20-jobtracker start
$ /etc/init.d/hadoop-0.20-tasktracker start
$ /etc/init.d/cloudera-desktop start

三、使用

用firefox 3.5 以上版本打開 http://localhost:8088/ 即可操作

ps : 圖形介面用 python 寫的,呼叫 /usr/share/cloudera-desktop/bin/desktop

四、參考文件

Last modified 15 years ago Last modified on Oct 7, 2009, 8:12:56 PM