{{{ #!html
Cloudera Desktop
}}} [[PageOutline]] 詳細介紹、功能、截圖 於此網頁 [http://www.cloudera.com/desktop/ ] = 一、安裝 = == 1.1 加入套件庫 == 新增一個檔案 /etc/apt/sources.list.d/cloudera.list,內容如下 {{{ #!text # $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 {{{ #!text dfs.namenode.plugins org.apache.hadoop.thriftfs.NamenodePlugin Comma-separated list of namenode plug-ins to be activated. dfs.datanode.plugins org.apache.hadoop.thriftfs.DatanodePlugin Comma-separated list of datanode plug-ins to be activated. dfs.thrift.address 0.0.0.0:9090 }}} == 2.2 修改 mapred-site.xml == 加入以下到 mapred-site.xml: {{{ #!text jobtracker.thrift.address 0.0.0.0:9290 mapred.jobtracker.plugins org.apache.hadoop.thriftfs.ThriftJobTrackerPlugin Comma-separated list of jobtracker plug-ins to be activated. }}} == 2.3 修改 hadoop-metrics.properties == 加入以下到 hadoop-metrics.properties : {{{ #!text # 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 = 四、參考文件 = * [http://archive.cloudera.com/docs/index-nochunks.html cloudera distribute hadoop] * [http://archive.cloudera.com/desktop/packages.html cloudera desktop ]