| 1 | {{{ |
| 2 | #!html |
| 3 | <div style="text-align: center"><big |
| 4 | style="font-weight: bold;"><big><big> Cloudera Desktop </big></big></big></div> |
| 5 | }}} |
| 6 | [[PageOutline]] |
| 7 | |
| 8 | http://archive.cloudera.com/docs/index-nochunks.html |
| 9 | |
| 10 | http://archive.cloudera.com/desktop/packages.html |
| 11 | |
| 12 | |
| 13 | /etc/apt/sources.list.d/cloudera.list |
| 14 | {{{ |
| 15 | #!text |
| 16 | # $DISTRO=版本名稱,如hardy,可用 lsb_release -c 來查看 |
| 17 | deb http://archive.cloudera.com/debian $DISTRO-testing contrib |
| 18 | deb-src http://archive.cloudera.com/debian $DISTRO-testing contrib |
| 19 | }}} |
| 20 | |
| 21 | {{{ |
| 22 | $ wget http://archive.cloudera.com/debian/archive.key | sudo apt-key add - |
| 23 | $ apt-get update |
| 24 | $ sudo apt-get install hadoop-0.20 (有多少裝多少) |
| 25 | $ apt-get install cloudera-desktop cloudera-desktop-plugins |
| 26 | }}} |
| 27 | |
| 28 | == 修改 hdfs-site.xml == |
| 29 | |
| 30 | 加入以下到 hdfs-site.xml |
| 31 | |
| 32 | {{{ |
| 33 | #!text |
| 34 | <property> |
| 35 | <name>dfs.namenode.plugins</name> |
| 36 | <value>org.apache.hadoop.thriftfs.NamenodePlugin</value> |
| 37 | <description>Comma-separated list of namenode plug-ins to be activated. |
| 38 | </description> |
| 39 | </property> |
| 40 | <property> |
| 41 | <name>dfs.datanode.plugins</name> |
| 42 | <value>org.apache.hadoop.thriftfs.DatanodePlugin</value> |
| 43 | <description>Comma-separated list of datanode plug-ins to be activated. |
| 44 | </description> |
| 45 | </property> |
| 46 | <property> |
| 47 | <name>dfs.thrift.address</name> |
| 48 | <value>0.0.0.0:9090</value> |
| 49 | </property> |
| 50 | }}} |
| 51 | |
| 52 | |
| 53 | == 修改 mapred-site.xml == |
| 54 | |
| 55 | 加入以下到 mapred-site.xml: |
| 56 | |
| 57 | {{{ |
| 58 | #!text |
| 59 | <property> |
| 60 | <name>jobtracker.thrift.address</name> |
| 61 | <value>0.0.0.0:9290</value> |
| 62 | </property> |
| 63 | <property> |
| 64 | <name>mapred.jobtracker.plugins</name> |
| 65 | <value>org.apache.hadoop.thriftfs.ThriftJobTrackerPlugin</value> |
| 66 | <description>Comma-separated list of jobtracker plug-ins to be activated. |
| 67 | </description> |
| 68 | </property> |
| 69 | }}} |
| 70 | |
| 71 | == 修改 hadoop-metrics.properties == |
| 72 | |
| 73 | 加入以下到 hadoop-metrics.properties : |
| 74 | |
| 75 | {{{ |
| 76 | #!text |
| 77 | # Exposes /metrics URL endpoint for metrics information. |
| 78 | dfs.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext |
| 79 | mapred.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext |
| 80 | jvm.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext |
| 81 | rpc.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext |
| 82 | }}} |
| 83 | |
| 84 | == 重開 hadoop 叢集與 cloudera desktop == |
| 85 | |
| 86 | {{{ |
| 87 | $ /etc/init.d/cloudera-desktop restart |
| 88 | }}} |
| 89 | |
| 90 | http://localhost:8088/ |