Repository: bigtop Updated Branches: refs/heads/master b1c1e72f5 -> d6b8d836a
BIGTOP-1971. Support Spark SQL CLI with Apache Hive out of the box Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d6b8d836 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d6b8d836 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d6b8d836 Branch: refs/heads/master Commit: d6b8d836ab5b87db72d3cc96789ad0ba743d1a84 Parents: b1c1e72 Author: YoungWoo Kim <[email protected]> Authored: Thu Aug 20 18:59:30 2015 +0900 Committer: YoungWoo Kim <[email protected]> Committed: Fri Aug 21 10:07:12 2015 +0900 ---------------------------------------------------------------------- .../src/common/spark/install_spark.sh | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/d6b8d836/bigtop-packages/src/common/spark/install_spark.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/spark/install_spark.sh b/bigtop-packages/src/common/spark/install_spark.sh index 40489d1..a23caed 100644 --- a/bigtop-packages/src/common/spark/install_spark.sh +++ b/bigtop-packages/src/common/spark/install_spark.sh @@ -207,6 +207,43 @@ export STANDALONE_SPARK_MASTER_HOST=\`hostname\` EOF +cat >> $PREFIX/$CONF_DIR/hive-site.xml <<EOF +<?xml version="1.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. +--> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> +<configuration> + +<property> + <name>javax.jdo.option.ConnectionURL</name> + <value>jdbc:derby:;databaseName=/tmp/spark-\${user.name}/metastore_db;create=true</value> + <description>JDBC connect string for a JDBC metastore</description> +</property> + +<property> + <name>javax.jdo.option.ConnectionDriverName</name> + <value>org.apache.derby.jdbc.EmbeddedDriver</value> + <description>Driver class name for a JDBC metastore</description> +</property> + +</configuration> + +EOF + ln -s /var/run/spark/work $PREFIX/$LIB_DIR/work cp -r ${BUILD_DIR}/python ${PREFIX}/${INSTALLED_LIB_DIR}/
