http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/jets3t-0.6.1.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/jets3t-0.6.1.jar.src b/distribution/src/main/resources-hadoop2/notices/jets3t-0.6.1.jar.src deleted file mode 100644 index 18b21b4..0000000 --- a/distribution/src/main/resources-hadoop2/notices/jets3t-0.6.1.jar.src +++ /dev/null @@ -1,18 +0,0 @@ -========================================================================= -== NOTICE file corresponding to section 4(d) of the Apache License, == -== Version 2.0, in this case for the distribution of jets3t. == -========================================================================= - -This product includes software developed by: - -The Apache Software Foundation (http://www.apache.org/). - -The ExoLab Project (http://www.exolab.org/) - -Sun Microsystems (http://www.sun.com/) - -Codehaus (http://castor.codehaus.org) - -Safehaus (http://jug.safehaus.org/Home) - -Tatu Saloranta (http://wiki.fasterxml.com/TatuSaloranta) \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/jetty-6.1.26.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/jetty-6.1.26.jar.src b/distribution/src/main/resources-hadoop2/notices/jetty-6.1.26.jar.src deleted file mode 100644 index 21d4ed3..0000000 --- a/distribution/src/main/resources-hadoop2/notices/jetty-6.1.26.jar.src +++ /dev/null @@ -1,36 +0,0 @@ -============================================================== - Jetty Web Container - Copyright 1995-2009 Mort Bay Consulting Pty Ltd -============================================================== - -The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd -unless otherwise noted. It is licensed under the apache 2.0 -license. - -The javax.servlet package used by Jetty is copyright -Sun Microsystems, Inc and Apache Software Foundation. It is -distributed under the Common Development and Distribution License. -You can obtain a copy of the license at -https://glassfish.dev.java.net/public/CDDLv1.0.html. - -The UnixCrypt.java code ~Implements the one way cryptography used by -Unix systems for simple password protection. Copyright 1996 Aki Yoshida, -modified April 2001 by Iris Van den Broeke, Daniel Deville. -Permission to use, copy, modify and distribute UnixCrypt -for non-commercial or commercial purposes and without fee is -granted provided that the copyright notice appears in all copies. - -The default JSP implementation is provided by the Glassfish JSP engine -from project Glassfish http://glassfish.dev.java.net. Copyright 2005 -Sun Microsystems, Inc. and portions Copyright Apache Software Foundation. - -Some portions of the code are Copyright: - 2006 Tim Vernum - 1999 Jason Gilbert. - -The jboss integration module contains some LGPL code. - -The win32 Java Service Wrapper (v3.2.3) is Copyright (c) 1999, 2006 -Tanuki Software, Inc. and 2001 Silver Egg Technology. It is -covered by an open license which is viewable at -http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/extras/win32service/LICENSE.txt http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/jetty-util-6.1.26.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/jetty-util-6.1.26.jar.src b/distribution/src/main/resources-hadoop2/notices/jetty-util-6.1.26.jar.src deleted file mode 100644 index 21d4ed3..0000000 --- a/distribution/src/main/resources-hadoop2/notices/jetty-util-6.1.26.jar.src +++ /dev/null @@ -1,36 +0,0 @@ -============================================================== - Jetty Web Container - Copyright 1995-2009 Mort Bay Consulting Pty Ltd -============================================================== - -The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd -unless otherwise noted. It is licensed under the apache 2.0 -license. - -The javax.servlet package used by Jetty is copyright -Sun Microsystems, Inc and Apache Software Foundation. It is -distributed under the Common Development and Distribution License. -You can obtain a copy of the license at -https://glassfish.dev.java.net/public/CDDLv1.0.html. - -The UnixCrypt.java code ~Implements the one way cryptography used by -Unix systems for simple password protection. Copyright 1996 Aki Yoshida, -modified April 2001 by Iris Van den Broeke, Daniel Deville. -Permission to use, copy, modify and distribute UnixCrypt -for non-commercial or commercial purposes and without fee is -granted provided that the copyright notice appears in all copies. - -The default JSP implementation is provided by the Glassfish JSP engine -from project Glassfish http://glassfish.dev.java.net. Copyright 2005 -Sun Microsystems, Inc. and portions Copyright Apache Software Foundation. - -Some portions of the code are Copyright: - 2006 Tim Vernum - 1999 Jason Gilbert. - -The jboss integration module contains some LGPL code. - -The win32 Java Service Wrapper (v3.2.3) is Copyright (c) 1999, 2006 -Tanuki Software, Inc. and 2001 Silver Egg Technology. It is -covered by an open license which is viewable at -http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/extras/win32service/LICENSE.txt http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/metrics-core-2.2.0.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/metrics-core-2.2.0.jar.src b/distribution/src/main/resources-hadoop2/notices/metrics-core-2.2.0.jar.src deleted file mode 100644 index cc8767c..0000000 --- a/distribution/src/main/resources-hadoop2/notices/metrics-core-2.2.0.jar.src +++ /dev/null @@ -1,11 +0,0 @@ -Metrics -Copyright 2010-2013 Coda Hale and Yammer, Inc. - -This product includes software developed by Coda Hale and Yammer, Inc. - -This product includes code derived from the JSR-166 project (ThreadLocalRandom, Striped64, -LongAdder), which was released with the following comments: - - Written by Doug Lea with assistance from members of JCP JSR-166 - Expert Group and released to the public domain, as explained at - http://creativecommons.org/publicdomain/zero/1.0/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/metrics-ganglia-2.2.0.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/metrics-ganglia-2.2.0.jar.src b/distribution/src/main/resources-hadoop2/notices/metrics-ganglia-2.2.0.jar.src deleted file mode 100644 index cc8767c..0000000 --- a/distribution/src/main/resources-hadoop2/notices/metrics-ganglia-2.2.0.jar.src +++ /dev/null @@ -1,11 +0,0 @@ -Metrics -Copyright 2010-2013 Coda Hale and Yammer, Inc. - -This product includes software developed by Coda Hale and Yammer, Inc. - -This product includes code derived from the JSR-166 project (ThreadLocalRandom, Striped64, -LongAdder), which was released with the following comments: - - Written by Doug Lea with assistance from members of JCP JSR-166 - Expert Group and released to the public domain, as explained at - http://creativecommons.org/publicdomain/zero/1.0/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/metrics-graphite-2.2.0.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/metrics-graphite-2.2.0.jar.src b/distribution/src/main/resources-hadoop2/notices/metrics-graphite-2.2.0.jar.src deleted file mode 100644 index cc8767c..0000000 --- a/distribution/src/main/resources-hadoop2/notices/metrics-graphite-2.2.0.jar.src +++ /dev/null @@ -1,11 +0,0 @@ -Metrics -Copyright 2010-2013 Coda Hale and Yammer, Inc. - -This product includes software developed by Coda Hale and Yammer, Inc. - -This product includes code derived from the JSR-166 project (ThreadLocalRandom, Striped64, -LongAdder), which was released with the following comments: - - Written by Doug Lea with assistance from members of JCP JSR-166 - Expert Group and released to the public domain, as explained at - http://creativecommons.org/publicdomain/zero/1.0/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/metrics-servlet-2.2.0.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/metrics-servlet-2.2.0.jar.src b/distribution/src/main/resources-hadoop2/notices/metrics-servlet-2.2.0.jar.src deleted file mode 100644 index cc8767c..0000000 --- a/distribution/src/main/resources-hadoop2/notices/metrics-servlet-2.2.0.jar.src +++ /dev/null @@ -1,11 +0,0 @@ -Metrics -Copyright 2010-2013 Coda Hale and Yammer, Inc. - -This product includes software developed by Coda Hale and Yammer, Inc. - -This product includes code derived from the JSR-166 project (ThreadLocalRandom, Striped64, -LongAdder), which was released with the following comments: - - Written by Doug Lea with assistance from members of JCP JSR-166 - Expert Group and released to the public domain, as explained at - http://creativecommons.org/publicdomain/zero/1.0/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/oro-2.0.8.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/oro-2.0.8.jar.src b/distribution/src/main/resources-hadoop2/notices/oro-2.0.8.jar.src deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/snappy-java-1.0.4.1.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/snappy-java-1.0.4.1.jar.src b/distribution/src/main/resources-hadoop2/notices/snappy-java-1.0.4.1.jar.src deleted file mode 100644 index 1930170..0000000 --- a/distribution/src/main/resources-hadoop2/notices/snappy-java-1.0.4.1.jar.src +++ /dev/null @@ -1,16 +0,0 @@ -This product includes software developed by Google - Snappy: http://code.google.com/p/snappy/ (New BSD License) - -This product includes software developed by Apache - PureJavaCrc32C from apache-hadoop-common http://hadoop.apache.org/ - (Apache 2.0 license) - -This library containd statically linked libstdc++. This inclusion is allowed by -"GCC RUntime Library Exception" -http://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html - -== Contributors == - * Tatu Saloranta - * Providing benchmark suite - * Alec Wysoker - * Performance and memory usage improvement http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/spatial4j-0.3.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/spatial4j-0.3.jar.src b/distribution/src/main/resources-hadoop2/notices/spatial4j-0.3.jar.src deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/resources-hadoop2/notices/zookeeper-3.4.5.jar.src ---------------------------------------------------------------------- diff --git a/distribution/src/main/resources-hadoop2/notices/zookeeper-3.4.5.jar.src b/distribution/src/main/resources-hadoop2/notices/zookeeper-3.4.5.jar.src deleted file mode 100644 index d9e0a49..0000000 --- a/distribution/src/main/resources-hadoop2/notices/zookeeper-3.4.5.jar.src +++ /dev/null @@ -1,5 +0,0 @@ -Apache ZooKeeper -Copyright 2009 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/blur ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/blur b/distribution/src/main/scripts/bin/blur deleted file mode 100755 index c3f4050..0000000 --- a/distribution/src/main/scripts/bin/blur +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh -PROC_NAME=$1 -if [ $# -eq 0 ]; then - "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_COMMAND -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -Dlog4j.configuration=file://$BLUR_HOME/conf/log4j-command.xml -cp $BLUR_CLASSPATH org.apache.blur.shell.Main shell help -elif [ $1 = "shell" ]; then - "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_COMMAND -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -Dlog4j.configuration=file://$BLUR_HOME/conf/log4j-command.xml -cp $BLUR_CLASSPATH org.apache.blur.shell.Main "${@:2}" -elif [ $1 = "execute" ]; then - "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_COMMAND -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -Dlog4j.configuration=file://$BLUR_HOME/conf/log4j-command.xml -cp $BLUR_CLASSPATH "${@:2}" -elif [ $1 = "csvloader" ]; then - for f in $BLUR_HOME/lib/*.jar; do - BLUR_BASE_CLASSPATH=${BLUR_BASE_CLASSPATH}:$f; - done - export HADOOP_CLASSPATH=$BLUR_BASE_CLASSPATH - hadoop jar $BLUR_HOME/lib/blur-mapred-*.jar org.apache.blur.mapreduce.lib.CsvBlurDriver "${@:2}" -else - "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_COMMAND -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -Dlog4j.configuration=file://$BLUR_HOME/conf/log4j-command.xml -cp $BLUR_CLASSPATH org.apache.blur.shell.Main shell "${@:1}" -fi http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/blur-config.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/blur-config.sh b/distribution/src/main/scripts/bin/blur-config.sh deleted file mode 100755 index 4b7fad4..0000000 --- a/distribution/src/main/scripts/bin/blur-config.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -export BLUR_HOME="$bin"/.. -export BLUR_HOME_CONF=$BLUR_HOME/conf - -. $BLUR_HOME/conf/blur-env.sh -if [ -z "$JAVA_HOME" ]; then - if which java >/dev/null 2>&1 ; then - export JAVA_HOME=`java -cp $bin/../lib/blur-util-*.jar org.apache.blur.FindJavaHome` - fi -fi -if [ -z "$JAVA_HOME" ]; then - cat 1>&2 <<EOF -+======================================================================+ -| Error: JAVA_HOME is not set and Java could not be found | -+----------------------------------------------------------------------+ -| Please download the latest Sun JDK from the Sun Java web site | -| > http://java.sun.com/javase/downloads/ < | -| | -| Hadoop and Blur requires Java 1.6 or later. | -| NOTE: This script will find Sun Java whether you install using the | -| binary or the RPM based installer. | -+======================================================================+ -EOF - exit 1 -fi - -export JAVA=$JAVA_HOME/bin/java - -export BLUR_LOGS=${BLUR_LOGS:=$BLUR_HOME/logs} - -if [ ! -d "$BLUR_LOGS" ]; then - mkdir -p $BLUR_LOGS -fi - -if [ ! -d "$BLUR_HOME/pids" ]; then - mkdir -p $BLUR_HOME/pids -fi - -BLUR_CLASSPATH=$BLUR_HOME/conf - -for f in $BLUR_HOME/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; -done - -for f in $BLUR_HOME/lib/*.war; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; -done - -BLUR_CORE_FILE=`ls -d1 $BLUR_HOME/lib/blur-core-*.jar | head -1` - -if [ -z "$HADOOP_HOME" ] || [[ $BLUR_CORE_FILE == *"hadoop1"* ]] ; then - - export HADOOP_HOME=`ls -d1 $BLUR_HOME/lib/hadoop-*/ | head -1` - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$HADOOP_HOME/conf - - for f in $HADOOP_HOME/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/lib/jsp-*/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - -else - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$HADOOP_HOME/etc/hadoop - - for f in $HADOOP_HOME/share/hadoop/mapreduce/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/mapreduce/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/yarn/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/yarn/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/common/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/common/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - -fi - - -export BLUR_CLASSPATH - -HOSTNAME=`hostname` http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/blur-supervised-config.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/blur-supervised-config.sh b/distribution/src/main/scripts/bin/blur-supervised-config.sh deleted file mode 100755 index f6e594b..0000000 --- a/distribution/src/main/scripts/bin/blur-supervised-config.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -export BLUR_HOME="$bin"/.. -export BLUR_HOME_CONF=$BLUR_HOME/conf - -#. $BLUR_HOME/conf/blur-env.sh -if [ -z "$JAVA_HOME" ]; then - if which java >/dev/null 2>&1 ; then - export JAVA_HOME=`java -cp $bin/../lib/blur-util-*.jar org.apache.blur.FindJavaHome` - fi -fi -if [ -z "$JAVA_HOME" ]; then - cat 1>&2 <<EOF -+======================================================================+ -| Error: JAVA_HOME is not set and Java could not be found | -+----------------------------------------------------------------------+ -| Please download the latest Sun JDK from the Sun Java web site | -| > http://java.sun.com/javase/downloads/ < | -| | -| Hadoop and Blur requires Java 1.6 or later. | -| NOTE: This script will find Sun Java whether you install using the | -| binary or the RPM based installer. | -+======================================================================+ -EOF - exit 1 -fi - -export JAVA=$JAVA_HOME/bin/java - -if [ -z "$BLUR_CONF_DIR" ]; then - BLUR_CONF_DIR=$BLUR_HOME/conf -fi - -if [[ -z "$BLUR_CLASSPATH" ]]; then - BLUR_CLASSPATH=$BLUR_CONF_DIR -else - BLUR_CLASSPATH=$BLUR_CLASSPATH:$BLUR_CONF_DIR -fi - -for f in $BLUR_HOME/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; -done - -for f in $BLUR_HOME/lib/*.war; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; -done - -BLUR_CORE_FILE=`ls -d1 $BLUR_HOME/lib/blur-core-*.jar | head -1` - - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$HADOOP_HOME/etc/hadoop - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$HADOOP_CLASSPATH - - for f in $HADOOP_HOME/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/yarn/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/yarn/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/common/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - for f in $HADOOP_HOME/share/hadoop/common/lib/*.jar; do - BLUR_CLASSPATH=${BLUR_CLASSPATH}:$f; - done - - - -export BLUR_CLASSPATH - -echo "BLUR_CLASSPATH: [$BLUR_CLASSPATH]" - -HOSTNAME=`hostname` http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/consoles.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/consoles.sh b/distribution/src/main/scripts/bin/consoles.sh deleted file mode 100755 index 61e4f7c..0000000 --- a/distribution/src/main/scripts/bin/consoles.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -export HOSTLIST="${BLUR_HOME_CONF}/consoles" - -for console in `cat "$HOSTLIST"|sed "s/#.*$//;/^$/d"`; do - ssh $BLUR_SSH_OPTS $console $"${@// /\\ }" \ - 2>&1 | sed "s/^/$console: /" & - if [ "$BLUR_CONSOLE_SLEEP" != "" ]; then - sleep $BLUR_CONSOLE_SLEEP - fi -done - -wait - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/controllers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/controllers.sh b/distribution/src/main/scripts/bin/controllers.sh deleted file mode 100755 index 37c7108..0000000 --- a/distribution/src/main/scripts/bin/controllers.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -export HOSTLIST="${BLUR_HOME_CONF}/controllers" - -for controller in `cat "$HOSTLIST"|sed "s/#.*$//;/^$/d"`; do - ssh $BLUR_SSH_OPTS $controller $"${@// /\\ }" \ - 2>&1 | sed "s/^/$controller: /" & - if [ "$BLUR_CONTROLLER_SLEEP" != "" ]; then - sleep $BLUR_CONTROLLER_SLEEP - fi -done - -wait - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/shards.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/shards.sh b/distribution/src/main/scripts/bin/shards.sh deleted file mode 100755 index 6b22678..0000000 --- a/distribution/src/main/scripts/bin/shards.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -export HOSTLIST="${BLUR_HOME_CONF}/shards" - -for shard in `cat "$HOSTLIST"|sed "s/#.*$//;/^$/d"`; do - ssh $BLUR_SSH_OPTS $shard $"${@// /\\ }" \ - 2>&1 | sed "s/^/$shard: /" & - if [ "$BLUR_SHARD_SLEEP" != "" ]; then - sleep $BLUR_SHARD_SLEEP - fi -done - -wait - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-all.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-all.sh b/distribution/src/main/scripts/bin/start-all.sh deleted file mode 100755 index 580262b..0000000 --- a/distribution/src/main/scripts/bin/start-all.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -if [ "$BLUR_MANAGE_ZK" == "true" ]; then - $BLUR_HOME/bin/start-zookeepers.sh -fi -$BLUR_HOME/bin/start-shards.sh -$BLUR_HOME/bin/start-controllers.sh -$BLUR_HOME/bin/start-consoles.sh http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-blocking-controller-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-blocking-controller-server.sh b/distribution/src/main/scripts/bin/start-blocking-controller-server.sh deleted file mode 100755 index f3df832..0000000 --- a/distribution/src/main/scripts/bin/start-blocking-controller-server.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -INSTANCE=0 -while [ $INSTANCE -lt $BLUR_NUMBER_OF_CONTROLLER_SERVER_INSTANCES_PER_MACHINE ]; do - PID_FILE=$BLUR_HOME/pids/controller-$INSTANCE.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Controller server already running as process `cat $PID_FILE`. Stop it first. - let INSTANCE=INSTANCE+1 - continue - fi - fi - - PROC_NAME=controller-server-$HOSTNAME-$INSTANCE - "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH -Dblur-controller-$INSTANCE $BLUR_CONTROLLER_JVM_OPTIONS -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -cp $BLUR_CLASSPATH org.apache.blur.thrift.ThriftBlurControllerServer -s $INSTANCE > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null - echo $! > $PID_FILE - echo Controller [$INSTANCE] starting as process `cat $PID_FILE`. - - let INSTANCE=INSTANCE+1 -done \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-console-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-console-server.sh b/distribution/src/main/scripts/bin/start-console-server.sh deleted file mode 100755 index d6085b3..0000000 --- a/distribution/src/main/scripts/bin/start-console-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -PID_FILE=$BLUR_HOME/pids/console.pid - -if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Console already running as process `cat $PID_FILE`. Stop it first. - exit 0 - fi -fi - -PROC_NAME=console-$HOSTNAME -nohup "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Dblur-console -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_CONSOLE_JVM_OPTIONS -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -cp $BLUR_CLASSPATH org.apache.blur.console.Main > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null & -echo $! > $PID_FILE -echo Console starting as process `cat $PID_FILE`. http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-consoles.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-consoles.sh b/distribution/src/main/scripts/bin/start-consoles.sh deleted file mode 100755 index fac7763..0000000 --- a/distribution/src/main/scripts/bin/start-consoles.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/consoles.sh $BLUR_HOME/bin/start-console-server.sh - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-controller-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-controller-server.sh b/distribution/src/main/scripts/bin/start-controller-server.sh deleted file mode 100755 index e484a77..0000000 --- a/distribution/src/main/scripts/bin/start-controller-server.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -INSTANCE=0 -while [ $INSTANCE -lt $BLUR_NUMBER_OF_CONTROLLER_SERVER_INSTANCES_PER_MACHINE ]; do - PID_FILE=$BLUR_HOME/pids/controller-$INSTANCE.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Controller server already running as process `cat $PID_FILE`. Stop it first. - let INSTANCE=INSTANCE+1 - continue - fi - fi - - PROC_NAME=controller-server-$HOSTNAME-$INSTANCE - nohup "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH -Dblur-controller-$INSTANCE $BLUR_CONTROLLER_JVM_OPTIONS -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -cp $BLUR_CLASSPATH org.apache.blur.thrift.ThriftBlurControllerServer -s $INSTANCE > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null & - echo $! > $PID_FILE - echo Controller [$INSTANCE] starting as process `cat $PID_FILE`. - - let INSTANCE=INSTANCE+1 -done \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-controllers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-controllers.sh b/distribution/src/main/scripts/bin/start-controllers.sh deleted file mode 100755 index c9b77f1..0000000 --- a/distribution/src/main/scripts/bin/start-controllers.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/controllers.sh $BLUR_HOME/bin/start-controller-server.sh - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-shard-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-shard-server.sh b/distribution/src/main/scripts/bin/start-shard-server.sh deleted file mode 100755 index 4d33f32..0000000 --- a/distribution/src/main/scripts/bin/start-shard-server.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -INSTANCE=0 -while [ $INSTANCE -lt $BLUR_NUMBER_OF_SHARD_SERVER_INSTANCES_PER_MACHINE ]; do - PID_FILE=$BLUR_HOME/pids/shard-$INSTANCE.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Shard server already running as process `cat $PID_FILE`. Stop it first. - let INSTANCE=INSTANCE+1 - continue - fi - fi - - PROC_NAME=shard-server-$HOSTNAME-$INSTANCE - nohup "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Dblur-shard-$INSTANCE -Djava.library.path=$JAVA_LIBRARY_PATH $BLUR_SHARD_JVM_OPTIONS -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -cp $BLUR_CLASSPATH org.apache.blur.thrift.ThriftBlurShardServer -s $INSTANCE > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null & - echo $! > $PID_FILE - echo Shard [$INSTANCE] starting as process `cat $PID_FILE`. - - let INSTANCE=INSTANCE+1 -done - - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-shards.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-shards.sh b/distribution/src/main/scripts/bin/start-shards.sh deleted file mode 100755 index 639ab98..0000000 --- a/distribution/src/main/scripts/bin/start-shards.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/shards.sh $BLUR_HOME/bin/start-shard-server.sh - - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-supervised-controller-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-supervised-controller-server.sh b/distribution/src/main/scripts/bin/start-supervised-controller-server.sh deleted file mode 100755 index 7afac4c..0000000 --- a/distribution/src/main/scripts/bin/start-supervised-controller-server.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -echo "Sourcing configs.." -. $BLUR_HOME/bin/blur-supervised-config.sh - -PROC_NAME=controller-server-$HOSTNAME-0 -echo "Launching controller [$PROC_NAME] now..." -echo "Using BLUR_CLASSPATH: ${BLUR_CLASSPATH}" -exec "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Dblur-controller -Dlog4j.configuration=log4j.properties $BLUR_CONTROLLER_JVM_OPTIONS -Djava.library.path=$JAVA_LIBRARY_PATH -cp "$BLUR_CLASSPATH" org.apache.blur.thrift.ThriftBlurControllerServer -s 0 http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-supervised-shard-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-supervised-shard-server.sh b/distribution/src/main/scripts/bin/start-supervised-shard-server.sh deleted file mode 100755 index 88e5352..0000000 --- a/distribution/src/main/scripts/bin/start-supervised-shard-server.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -echo "Sourcing configs.." -. $BLUR_HOME/bin/blur-supervised-config.sh - -PROC_NAME=shard-server-$HOSTNAME-0 -echo "Launching shard [$PROC_NAME] now..." -echo "Using BLUR_CLASSPATH: ${BLUR_CLASSPATH}" -exec "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Dblur-shard -Dlog4j.configuration=log4j.properties $BLUR_SHARD_JVM_OPTIONS -Djava.library.path=$JAVA_LIBRARY_PATH -cp "$BLUR_CLASSPATH" org.apache.blur.thrift.ThriftBlurShardServer -s 0 http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-zookeeper-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-zookeeper-server.sh b/distribution/src/main/scripts/bin/start-zookeeper-server.sh deleted file mode 100755 index becee2f..0000000 --- a/distribution/src/main/scripts/bin/start-zookeeper-server.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -if [ $BLUR_MANAGE_ZK = true ]; then - PID_FILE=$BLUR_HOME/pids/zk.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo ZooKeeper already running as process `cat $PID_FILE`. Stop it first. - exit 0 - fi - fi - - PROC_NAME=zk-$HOSTNAME - nohup "$JAVA_HOME"/bin/java -Dblur.name=$PROC_NAME -Djava.library.path=$JAVA_LIBRARY_PATH -Dblur-zk $BLUR_ZK_JVM_OPTIONS -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -Dlog4j.configuration=file://$BLUR_HOME/conf/log4j-command.xml -cp $BLUR_CLASSPATH org.apache.zookeeper.server.quorum.QuorumPeerMain $BLUR_HOME/conf/default_zoo.cfg > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null & - echo $! > $PID_FILE - echo ZooKeeper starting as process `cat $PID_FILE`. -else - echo Blur is not managing ZooKeeper -fi \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/start-zookeepers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/start-zookeepers.sh b/distribution/src/main/scripts/bin/start-zookeepers.sh deleted file mode 100755 index bf18c54..0000000 --- a/distribution/src/main/scripts/bin/start-zookeepers.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/zookeepers.sh $BLUR_HOME/bin/start-zookeeper-server.sh - - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-all.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-all.sh b/distribution/src/main/scripts/bin/stop-all.sh deleted file mode 100755 index 83be844..0000000 --- a/distribution/src/main/scripts/bin/stop-all.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/stop-consoles.sh -$BLUR_HOME/bin/stop-controllers.sh -$BLUR_HOME/bin/stop-shards.sh -if [ "$BLUR_MANAGE_ZK" == "true" ]; then - $BLUR_HOME/bin/stop-zookeepers.sh -fi http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-console-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-console-server.sh b/distribution/src/main/scripts/bin/stop-console-server.sh deleted file mode 100755 index 4de1454..0000000 --- a/distribution/src/main/scripts/bin/stop-console-server.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -PID_FILE=$BLUR_HOME/pids/console.pid -if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Stopping Console with pid [`cat $PID_FILE`]. - kill `cat $PID_FILE` - else - echo No Console to stop - fi -else - echo No Console to stop -fi http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-consoles.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-consoles.sh b/distribution/src/main/scripts/bin/stop-consoles.sh deleted file mode 100755 index 6588a40..0000000 --- a/distribution/src/main/scripts/bin/stop-consoles.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/consoles.sh $BLUR_HOME/bin/stop-console-server.sh - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-controller-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-controller-server.sh b/distribution/src/main/scripts/bin/stop-controller-server.sh deleted file mode 100755 index 2595e19..0000000 --- a/distribution/src/main/scripts/bin/stop-controller-server.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -INSTANCE=0 -while [ $INSTANCE -lt $BLUR_NUMBER_OF_CONTROLLER_SERVER_INSTANCES_PER_MACHINE ]; do - PID_FILE=$BLUR_HOME/pids/controller-$INSTANCE.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Stopping Controller [$INSTANCE] server with pid [`cat $PID_FILE`]. - kill `cat $PID_FILE` - else - echo No Controller [$INSTANCE] server to stop - fi - else - echo No Controller [$INSTANCE] server to stop - fi - let INSTANCE=INSTANCE+1 -done \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-controllers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-controllers.sh b/distribution/src/main/scripts/bin/stop-controllers.sh deleted file mode 100755 index 5a44096..0000000 --- a/distribution/src/main/scripts/bin/stop-controllers.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/controllers.sh $BLUR_HOME/bin/stop-controller-server.sh - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-shard-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-shard-server.sh b/distribution/src/main/scripts/bin/stop-shard-server.sh deleted file mode 100755 index d850ffb..0000000 --- a/distribution/src/main/scripts/bin/stop-shard-server.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -INSTANCE=0 -while [ $INSTANCE -lt $BLUR_NUMBER_OF_SHARD_SERVER_INSTANCES_PER_MACHINE ]; do - PID_FILE=$BLUR_HOME/pids/shard-$INSTANCE.pid - - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Stopping Shard [$INSTANCE] server with pid [`cat $PID_FILE`]. - kill `cat $PID_FILE` - else - echo No Shard [$INSTANCE] server to stop - fi - else - echo No Shard [$INSTANCE] server to stop - fi - let INSTANCE=INSTANCE+1 -done \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-shards.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-shards.sh b/distribution/src/main/scripts/bin/stop-shards.sh deleted file mode 100755 index a755194..0000000 --- a/distribution/src/main/scripts/bin/stop-shards.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -if [[ -z $BLUR_CLASSPATH ]] ; then - . "$bin"/blur-config.sh -fi -PROC_NAME="Shutdown" -nohup "$JAVA_HOME"/bin/java -Dblur.name=SHUTDOWN_PROC -Djava.library.path=$JAVA_LIBRARY_PATH -Dblur.logs.dir=$BLUR_LOGS -Dblur.log.file=blur-$USER-$PROC_NAME -cp $BLUR_CLASSPATH org.apache.blur.thrift.Shutdown > "$BLUR_LOGS/blur-$USER-$PROC_NAME.out" 2>&1 < /dev/null & -SHUTDOWN_PID=$! -$BLUR_HOME/bin/shards.sh $BLUR_HOME/bin/stop-shard-server.sh -kill -15 $SHUTDOWN_PID - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-zookeeper-server.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-zookeeper-server.sh b/distribution/src/main/scripts/bin/stop-zookeeper-server.sh deleted file mode 100755 index 5455988..0000000 --- a/distribution/src/main/scripts/bin/stop-zookeeper-server.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -if [ $BLUR_MANAGE_ZK = true ]; then - PID_FILE=$BLUR_HOME/pids/zk.pid - if [ -f $PID_FILE ]; then - if kill -0 `cat $PID_FILE` > /dev/null 2>&1; then - echo Stopping ZooKeeper with pid [`cat $PID_FILE`]. - kill `cat $PID_FILE` - else - echo No ZooKeeper to stop - fi - else - echo No ZooKeeper to stop - fi -else - echo Blur is not managing ZooKeeper -fi \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/stop-zookeepers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/stop-zookeepers.sh b/distribution/src/main/scripts/bin/stop-zookeepers.sh deleted file mode 100755 index 0bd696e..0000000 --- a/distribution/src/main/scripts/bin/stop-zookeepers.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -$BLUR_HOME/bin/zookeepers.sh $BLUR_HOME/bin/stop-zookeeper-server.sh - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/bin/zookeepers.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/bin/zookeepers.sh b/distribution/src/main/scripts/bin/zookeepers.sh deleted file mode 100755 index 275256e..0000000 --- a/distribution/src/main/scripts/bin/zookeepers.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env 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. - -bin=`dirname "$0"` -bin=`cd "$bin"; pwd` - -. "$bin"/blur-config.sh - -export HOSTLIST="${BLUR_HOME_CONF}/zookeepers" - -for zookeeper in `cat "$HOSTLIST"|sed "s/#.*$//;/^$/d"`; do - ssh $BLUR_SSH_OPTS $zookeeper $"${@// /\\ }" \ - 2>&1 | sed "s/^/$zookeeper: /" & - if [ "$BLUR_ZK_SLEEP" != "" ]; then - sleep $BLUR_ZK_SLEEP - fi -done - -wait - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/blur-env.sh ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/blur-env.sh b/distribution/src/main/scripts/conf/blur-env.sh deleted file mode 100755 index 06dbdc2..0000000 --- a/distribution/src/main/scripts/conf/blur-env.sh +++ /dev/null @@ -1,73 +0,0 @@ -# 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 environment specific Blur settings here. - -# JAVA_HOME is required -# export JAVA_HOME=/usr/lib/j2sdk1.6-sun - -# HADOOP_HOME is required -# export HADOOP_HOME=/var/hadoop-0.20.2 - -# JAVA JVM OPTIONS for the shard servers, jvm tuning parameters are placed here. -# -# This is an example of JVM options on a large heap and how to setup large pages and max direct memory size. -# export BLUR_SHARD_JVM_OPTIONS="-XX:MaxDirectMemorySize=<size>g -XX:+UseLargePages -Xms12g -Xmx12g -Xmn2g -XX:+UseCompressedOops \ -#-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSIncrementalDutyCycleMin=10 -XX:CMSIncrementalDutyCycle=50 \ -#-XX:ParallelGCThreads=8 -XX:+UseParNewGC -XX:MaxGCPauseMillis=200 -XX:GCTimeRatio=10 -XX:+DisableExplicitGC \ -#-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:$BLUR_HOME/logs/gc-blur-shard-server_`date +%Y%m%d_%H%M%S`.log -# Consider adding the -XX:OnOutOfMemoryError="kill -9 %p" option to kill jvms that are failing due to memory issues. -export BLUR_SHARD_JVM_OPTIONS="-Xmx1024m -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=256m " - -# JAVA JVM OPTIONS for the controller servers, jvm tuning parameters are placed here. -# Consider adding the -XX:OnOutOfMemoryError="kill -9 %p" option to kill jvms that are failing due to memory issues. -export BLUR_CONTROLLER_JVM_OPTIONS="-Xmx1024m -Djava.net.preferIPv4Stack=true " - -# This tells blur to manage the ZooKeeper instances, set this to false if Blur is not going to manage the ZooKeeper cluster -export BLUR_MANAGE_ZK=true - -# JAVA JVM OPTIONS for the zookeepers servers, jvm tuning parameters are placed here. -export BLUR_ZK_JVM_OPTIONS="-Xmx128m -Djava.net.preferIPv4Stack=true " - -# JAVA JVM OPTIONS for the console servers, jvm tuning parameters are placed here. -export BLUR_CONSOLE_JVM_OPTIONS="-Xmx1024m -Djava.net.preferIPv4Stack=true " - -# JAVA JVM OPTIONS for the shard servers, jvm tuning parameters are placed here. -export BLUR_COMMAND="-Xmx1024m -Djava.net.preferIPv4Stack=true" - -# Any SSH Options to be used during startup or shutdown commands. -export BLUR_SSH_OPTS= - -# Time to sleep between shard server commands. -export BLUR_SHARD_SLEEP=0.1 - -# Time to sleep between controller server commands. -export BLUR_CONTROLLER_SLEEP=0.1 - -# Time to sleep between zookeeper server commands. -export BLUR_ZK_SLEEP=0.1 - -# The of shard servers to spawn per machine. -export BLUR_NUMBER_OF_SHARD_SERVER_INSTANCES_PER_MACHINE=1 - -# The of controller servers to spawn per machine. -export BLUR_NUMBER_OF_CONTROLLER_SERVER_INSTANCES_PER_MACHINE=1 - -# The directory where all the log files will be located. -# export BLUR_LOGS=$BLUR_HOME/logs - -# If you would like to add Hadoop native libraries or any other native libs add them to this variable. -#export JAVA_LIBRARY_PATH= - http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/blur-site.properties ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/blur-site.properties b/distribution/src/main/scripts/conf/blur-site.properties deleted file mode 100644 index 3064f67..0000000 --- a/distribution/src/main/scripts/conf/blur-site.properties +++ /dev/null @@ -1,27 +0,0 @@ -# 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. - -blur.zookeeper.connection=127.0.0.1 -blur.cluster.name=default - -# -# Sets the default table location in hdfs. If left null the table uri property in -# the table descriptor will be required for all tables. -# -# blur.cluster.<cluster name here>.table.uri=<hdfs uri> -# -# Example: -# blur.cluster.default.table.uri=hdfs://namenode/blur/tables -# http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/consoles ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/consoles b/distribution/src/main/scripts/conf/consoles deleted file mode 100644 index 63fb8bb..0000000 --- a/distribution/src/main/scripts/conf/consoles +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -localhost http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/controllers ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/controllers b/distribution/src/main/scripts/conf/controllers deleted file mode 100644 index 63fb8bb..0000000 --- a/distribution/src/main/scripts/conf/controllers +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -localhost http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/default_zoo.cfg ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/default_zoo.cfg b/distribution/src/main/scripts/conf/default_zoo.cfg deleted file mode 100644 index ef4ac4f..0000000 --- a/distribution/src/main/scripts/conf/default_zoo.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# 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. - -# The number of milliseconds of each tick -tickTime=2000 -# The max session timeout is 180 seconds -maxSessionTimeout=180000 -# The number of ticks that the initial -# synchronization phase can take -initLimit=10 -# The number of ticks that can pass between -# sending a request and getting an acknowledgement -syncLimit=5 -# the directory where the snapshot is stored. -# do not use /tmp for storage, /tmp here is just -# example sakes. -dataDir=/tmp/zk_data -# the port at which the clients will connect -clientPort=2181 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/log4j-command.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/log4j-command.xml b/distribution/src/main/scripts/conf/log4j-command.xml deleted file mode 100644 index 8641734..0000000 --- a/distribution/src/main/scripts/conf/log4j-command.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!-- -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. ---> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> - <param name="File" value="${blur.logs.dir}/${blur.log.file}.log" /> - <param name="DatePattern" value="'.'yyyyMMdd" /> - <param name="Append" value="true" /> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="%-5p %d{yyyyMMdd_HH:mm:ss:SSS_z} [%t] %c{2}: %m%n" /> - </layout> - </appender> - - <root> - <priority value="INFO" /> - <appender-ref ref="FILE" /> - </root> -</log4j:configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/log4j.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/log4j.xml b/distribution/src/main/scripts/conf/log4j.xml deleted file mode 100644 index af92564..0000000 --- a/distribution/src/main/scripts/conf/log4j.xml +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!-- -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. ---> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="%-5p %d{yyyyMMdd_HH:mm:ss:SSS_z} [%t] %c{2}: %m%n" /> - </layout> - </appender> - - <appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> - <appender-ref ref="FILE" /> - </appender> - - <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> - <param name="File" value="${blur.logs.dir}/${blur.log.file}_main.log" /> - <param name="DatePattern" value="'.'yyyyMMdd" /> - <param name="Append" value="true" /> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="%-5p %d{yyyyMMdd_HH:mm:ss:SSS_z} [%t] %c{2}: %m%n" /> - </layout> - </appender> - - <appender name="ASYNC_REQUEST_LOG_FILE" class="org.apache.log4j.AsyncAppender"> - <appender-ref ref="REQUEST_LOG_FILE" /> - </appender> - - <appender name="REQUEST_LOG_FILE" class="org.apache.log4j.DailyRollingFileAppender"> - <param name="File" value="${blur.logs.dir}/${blur.log.file}_request.log" /> - <param name="DatePattern" value="'.'yyyyMMdd" /> - <param name="Append" value="true" /> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="{"ts":"%d{yyyyMMdd_HH:mm:ss:SSS_z}","thread":"%t","reponse":%m}%n" /> - </layout> - </appender> - - <appender name="ASYNC_RESPONSE_LOG_FILE" class="org.apache.log4j.AsyncAppender"> - <appender-ref ref="RESPONSE_LOG_FILE" /> - </appender> - - <appender name="RESPONSE_LOG_FILE" class="org.apache.log4j.DailyRollingFileAppender"> - <param name="File" value="${blur.logs.dir}/${blur.log.file}_response.log" /> - <param name="DatePattern" value="'.'yyyyMMdd" /> - <param name="Append" value="true" /> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="{"ts":"%d{yyyyMMdd_HH:mm:ss:SSS_z}","thread":"%t","reponse":%m}%n" /> - </layout> - </appender> - - <appender name="ASYNC_LUCENE_WRITER_INFO_STREAM_FILE" class="org.apache.log4j.AsyncAppender"> - <appender-ref ref="LUCENE_WRITER_INFO_STREAM_FILE" /> - </appender> - - <appender name="LUCENE_WRITER_INFO_STREAM_FILE" class="org.apache.log4j.DailyRollingFileAppender"> - <param name="File" value="${blur.logs.dir}/${blur.log.file}_infostream.log" /> - <param name="DatePattern" value="'.'yyyyMMdd" /> - <param name="Append" value="true" /> - <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="%-5p %d{yyyyMMdd_HH:mm:ss:SSS_z} [%t] %c{2}: %m%n" /> - </layout> - </appender> - - <logger name="org.apache.hadoop"> - <level value="ERROR" /> - <appender-ref ref="ASYNC"/> - </logger> - - <logger name="REQUEST_LOG" additivity="false"> - <!-- Make value = "INFO"to enable --> - <level value="ERROR" /> - <appender-ref ref="ASYNC_REQUEST_LOG_FILE"/> - </logger> - - <logger name="RESPONSE_LOG" additivity="false"> - <!-- Make value = "INFO"to enable --> - <level value="ERROR" /> - <appender-ref ref="ASYNC_RESPONSE_LOG_FILE"/> - </logger> - - <logger name="LUCENE_WRITER_INFO_STREAM" additivity="false"> - <!-- Make value = "INFO"to enable --> - <level value="ERROR" /> - <appender-ref ref="ASYNC_LUCENE_WRITER_INFO_STREAM_FILE"/> - </logger> - - <!--root> - For production use, the async configuration will be better for performance at the cost of not seeing the final flushed log events. - <priority value="INFO" /> - <appender-ref ref="ASYNC" /> - </root--> - - <root> - <priority value="INFO" /> - <appender-ref ref="FILE" /> - </root> -</log4j:configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/shards ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/shards b/distribution/src/main/scripts/conf/shards deleted file mode 100644 index 63fb8bb..0000000 --- a/distribution/src/main/scripts/conf/shards +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -localhost http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e5ae88af/distribution/src/main/scripts/conf/zookeepers ---------------------------------------------------------------------- diff --git a/distribution/src/main/scripts/conf/zookeepers b/distribution/src/main/scripts/conf/zookeepers deleted file mode 100644 index 0db83e2..0000000 --- a/distribution/src/main/scripts/conf/zookeepers +++ /dev/null @@ -1,17 +0,0 @@ -# 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. - -#NOTE: There is additional setup in the default_zoo.cfg file needed for multiple instances of ZooKeeper. See ZooKeeper documentation. -localhost