| #/bin/bash |
| #-------------------------------------------------------------------------------- |
| # |
| # 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. |
| # |
| # |
| # Set MRQL-specific environment variables here. |
| # |
| #-------------------------------------------------------------------------------- |
| |
| |
| # Required: The java installation directory |
| JAVA_HOME=/root/jdk |
| |
| |
| # Required: Hadoop configuration |
| HADOOP_VERSION=1.0.3 |
| # The Hadoop installation directory |
| HADOOP_HOME=${HOME}/hadoop-${HADOOP_VERSION} |
| # The Hadoop job trackeer (as defined in hdfs-site.xml) |
| MAPRED_JOB_TRACKER=localhost:9001 |
| # The HDFS namenode URI (as defined in hdfs-site.xml) |
| FS_DEFAULT_NAME=hdfs://localhost:9000/ |
| |
| |
| # Optional: Hama configuration |
| HAMA_VERSION=0.5.0 |
| # The Hadoop installation directory |
| HAMA_HOME=${HOME}/hama-${HAMA_VERSION} |
| # The Hama configuration as defined in hama-site.xml |
| BSP_MASTER_ADDRESS=localhost:40000 |
| HAMA_ZOOKEEPER_QUORUM=localhost |
| |
| |
| # Optional: Spark configuration |
| SPARK_HOME=${HOME}/spark-0.7.3 |
| # Location of the Scala libs |
| SCALA_LIB=/usr/share/java |
| # URI of the Spark master node |
| SPARK_MASTER=spark://crete:7077 |
| |
| |
| # Claspaths |
| |
| HADOOP_JARS=${HADOOP_HOME}/hadoop-core-${HADOOP_VERSION}.jar:${HADOOP_HOME}/lib/commons-logging-1.1.1.jar:${HADOOP_HOME}/lib/log4j-1.2.15.jar:${HADOOP_HOME}/lib/commons-cli-1.2.jar |
| |
| HAMA_JAR=${HAMA_HOME}/hama-core-${HAMA_VERSION}.jar |
| |
| SPARK_JARS=${SCALA_LIB}/scala-library.jar:${SCALA_LIB}/scala-compiler.jar:${SPARK_HOME}/core/target/scala-2.9.3/classes:${SPARK_HOME}/lib_managed/jars/*:${SPARK_HOME}/lib_managed/bundles/* |