阅读背景:

Impala 安装笔记1一Cloudera CDH4.3.0安装

来源:互联网 
 1 <configuration>
2 <property>
3 <name>fs.defaultFS</name>
4 <value>hdfs://localhost:9000</value>
5 </property>
6 <property>
7 <name>fs.trash.interval</name>
8 <value>10080</value>
9 </property>
10 <property>
11 <name>fs.trash.checkpoint.interval</name>
12 <value>10080</value>
13 </property>
14 </configuration>
 1 <configuration>
2 <property>
3 <name>dfs.replication</name>
4 <value>1</value>
5 </property>
6 <property>
7 <name>hadoop.tmp.dir</name>
8 <value>/home/godp/hadoop-2.0.0-cdh4.3.0/tmp</value>
9 </property>
10 <property>
11 <name>dfs.namenode.http-address</name>
12 <value>localhost:50070</value>
13 </property>
14 <property>
15 <name>dfs.namenode.secondary.http-address</name>
16 <value>localhost:50090</value>
17 </property>
18 <property>
19 <name>dfs.webhdfs.enabled</name>
20 <value>true</value>
21 </property>
22 <property>
23 <name>dfs.block.local-path-access.user</name>
24 <value>impala</value>
25 </property>
26
27 <property>
28 <name>dfs.client.read.shortcircuit</name>
29 <value>true</value>
30 </property>
31
32 <property>
33 <name>dfs.domain.socket.path</name>
34 <value>/var/run/hadoop-hdfs/dn._PORT</value>
35 </property>
36 <property>
37 <name>dfs.client.file-block-storage-locations.timeout</name>
38 <value>3000</value>
39 </property>
40 </configuration>
 1 <?xml version="1.0"?>
2 <configuration>
3 <!-- Site specific YARN configuration properties -->
4 <property>
5 <name>yarn.resourcemanager.resource-tracker.address</name>
6 <value>localhost:8031</value>
7 </property>
8 <property>
9 <name>yarn.resourcemanager.address</name>
10 <value>localhost:8032</value>
11 </property>
12 <property>
13 <name>yarn.resourcemanager.scheduler.address</name>
14 <value>localhost:8030</value>
15 </property>
16 <property>
17 <name>yarn.resourcemanager.admin.address</name>
18 <value>localhost:8033</value>
19 </property>
20 <property>
21 <name>yarn.resourcemanager.webapp.address</name>
22 <value>localhost:8088</value>
23 </property>
24 <property>
25 <description>Classpath for typical applications.</description>
26 <name>yarn.application.classpath</name>
27 <value>$HADOOP_CONF_DIR,$HADOOP_COMMON_HOME/share/hadoop/common/*,
28 $HADOOP_COMMON_HOME/share/hadoop/common/lib/*,
29 $HADOOP_HDFS_HOME/share/hadoop/hdfs/*,$HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*,
30 $YARN_HOME/share/hadoop/yarn/*,$YARN_HOME/share/hadoop/yarn/lib/*,
31 $YARN_HOME/share/hadoop/mapreduce/*,$YARN_HOME/share/hadoop/mapreduce/lib/*
32 </value>
33 </property>
34 <property>
35 <name>yarn.nodemanager.aux-services</name>
36 <value>mapreduce.shuffle</value>
37 </property>
38 <property>
39 <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
40 <value>org.apache.hadoop.mapred.ShuffleHandler</value>
41 </property>
42 <property>
43 <name>yarn.nodemanager.local-dirs</name>
44 <value>/home/godp/hadoop-2.0.0-cdh4.3.0/yarn/local</value>
45 </property>
46 <property>
47 <name>yarn.nodemanager.log-dirs</name>
48 <value>/home/godp/hadoop-2.0.0-cdh4.3.0/yarn/logs</value>
49 </property>
50 <property>
51 <description>Where to aggregate logs</description>
52 <name>yarn.nodemanager.remote-app-log-dir</name>
53 <value>/home/godp/hadoop-2.0.0-cdh4.3.0/yarn/logs</value>
54 </property>
55 <property>
56 <name>yarn.app.mapreduce.am.staging-dir</name>
57 <value>/home/godp/hadoop-2.0.0-cdh4.3.0</value>
58 </property>
59 </configuration>
 1 <?xml version="1.0"?>
2 <?xml-stylesheet type="text/xsl" href="/go.html?url=configuration.xsl"?>
3
4 <!-- Put site-specific property overrides in this file. -->
5
6 <configuration>
7 <property>
8 <name>mapreduce.framework.name</name>
9 <value>yarn</value>
10 </property>
11 <property>
12 <name>mapreduce.jobhistory.address</name>
13 <value>localhost:10020</value>
14 </property>
15 <property>
16 <name>mapreduce.jobhistory.webapp.address</name>
17 <value>localhost:19888</value>
18 </property>
19
20
21 </configuration>
export JAVA_HOME=/usr/lib/jvm/jdk7
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=./:$JAVA_HOME/lib:$JRE_HOME/lib:$JRE_HOME/lib/tools.jar
export HADOOP_HOME=/home/godp/hadoop-2.0.0-cdh4.3.0
export HADOOP_MAPRED_HOME=${HADOOP_HOME}
export HADOOP_COMMON_HOME=${HADOOP_HOME}
export HADOOP_HDFS_HOME=${HADOOP_HOME}
export YARN_HOME=${HADOOP_HOME}
export HADOOP_YARN_HOME=${HADOOP_HOME}
export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export HDFS_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export YARN_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/sbin
export HIVE_HOME=/home/godp/hive-0.9.0-cdh4.1.0
export PATH=$PATH:$HADOOP_HOME/bin:$HIVE_HOME/bin

分享到: