blob: 6daca9636efa74e7445157952325ba314e4ab838 [file] [log] [blame]
# .bashrc
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export JAVA_HOME={{ java_home }}
{% if hadoop_major_version == '2' %}
export HADOOP_PREFIX={{ hadoop_home }}
export HADOOP_CONF_DIR=$HADOOP_PREFIX/etc/hadoop
{% else %}
export HADOOP_HOME={{ hadoop_home }}
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
{% endif %}
export ZOOKEEPER_HOME={{ zookeeper_home }}
export SPARK_HOME={{ spark_home }}
export ACCUMULO_HOME={{ accumulo_home }}
export FLUO_HOME={{ fluo_home }}
PATH=$JAVA_HOME/bin:$PATH
PATH=$PATH:{{ accumulo_home }}/bin
PATH=$PATH:{{ fluo_home }}/bin
PATH=$PATH:{{ hadoop_home }}/bin
PATH=$PATH:{{ hadoop_home }}/sbin
PATH=$PATH:{{ hub_home }}/bin
PATH=$PATH:{{ maven_home }}/bin
PATH=$PATH:{{ spark_home }}/bin
PATH=$PATH:{{ zookeeper_home }}/bin
export PATH
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'