source: hadoop4win-setup/my_packages/hbase/bin/hbase-init @ 140

Last change on this file since 140 was 140, checked in by jazz, 14 years ago

開另一個視窗避免 CTRL+C 把 java 子程序全砍了 - 暫時無法在 Cygwin 網站找到解法
http://www.mail-archive.com/cygwin@cygwin.com/msg104921.html

  • Property svn:executable set to *
File size: 862 bytes
Line 
1#!/bin/bash
2if [ ! -f /usr/src/hbase-0.20.3.tar.gz ]; then
3  wget http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.20.3/hbase-0.20.3.tar.gz -o /usr/src/hbase-0.20.3.tar.gz
4fi
5
6tar zxvf /usr/src/hbase-0.20.3.tar.gz -C /opt
7ln -s /opt/hbase-* /opt/hbase
8cp /opt/hadoop/conf/core-site.xml /opt/hbase/conf
9cp /opt/hadoop/conf/hdfs-site.xml /opt/hbase/conf
10cp /opt/hadoop/conf/mapred-site.xml /opt/hbase/conf
11cat >> /opt/hbase/conf/hbase-env.sh << EOF
12  export JAVA_HOME=$JAVA_HOME
13  export HADOOP_CONF_DIR=/opt/hadoop/conf
14  export HBASE_HOME=/opt/hbase
15  export HBASE_MANAGES_ZK=true
16EOF
17cat > /opt/hbase/conf/hbase-site.xml << EOF
18<?xml version="1.0"?>
19<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
20<configuration>
21  <property>
22    <name>hbase.rootdir</name>
23    <value>hdfs://localhost:9000/hbase</value>
24  </property>
25</configuration>
26EOF
Note: See TracBrowser for help on using the repository browser.