我hadoop用户的profile:
export PS1="[$(id -un)@$(hostname -s) \$PWD]$"
set -o vi
alias ls='ls'
alias cp='cp'
export JAVA_HOME=/jdk1.8.0
export PATH=.:$JAVA_HOME/bin:$PATH
export CLASSPATH=.:/jdk1.8.0/jre/lib
export PATH=$PATH:/home/hadoop/hadoop-2.7.2/bin:/home/hadoop/hadoop-2.7.2/sbin
export HADOOP_HOME=/home/hadoop/hadoop-2.7.2
export HADOOP_CONF=/home/hadoop/hadoop-2.7.2/etc/hadoop
export SQOOP_HOME=/home/hadoop/sqoop-1.99.6
export PATH=$SQOOP_HOME/bin:$PATH
export CATALINA_HOME=$SQOOP_HOME/server
export CATALINA_BASE=$SQOOP_HOME/server
export LOGDIR=/tmp/sqoop_logs
export HBASE_HOME=/home/hadoop/hbase-1.2.2
export HBASE_CONF=/home/hadoop/hbase-1.2.2/conf
export PATH=${HBASE_HOME}/bin:${PATH}
export HBASE_LIB=/home/hadoop/hbase-1.2.2/lib
export PS1="[$(id -un)@$(hostname -s) \$PWD]$"
export HIVE_HOME=/home/hadoop/hive-2.1.0
export PATH=$HIVE_HOME/bin:$PATH
export HIVE_CONF=/home/hadoop/hive-2.1.0/conf
vi $SQOOP_HOME/server/conf/sqoop.properties
org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/home/hadoop/hadoop-2.7.2
org.apache.sqoop.log4j.appender.file.File=/tmp/sqoop_logs/sqoop.log
org.apache.sqoop.auditlogger.default.file=/tmp/sqoop_logs/default.audit
org.apache.sqoop.repository.sysprop.derby.stream.error.file=/tmp/sqoop_logs/derbyrepo.log
org.apache.sqoop.repository.jdbc.url=jdbc:derby:/home/hadoop/sqoop-1.99.6/repository/db;create=true
vi $SQOOP_HOME/server/conf/catalina.properties
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/common/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/common/lib/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/hdfs/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/hdfs/lib/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/mapreduce/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/mapreduce/lib/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/yarn/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/yarn/lib/*.jar,/home/hadoop/hive-2.1.0/lib/*.jar,/home/hadoop/hadoop-2.7.2/share/hadoop/tools/lib/*.jar
|