[ 
https://issues.apache.org/jira/browse/PHOENIX-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

alex kamil updated PHOENIX-1194:
--------------------------------

    Description: 
Pls add minimal install instructions including standalone hbase setup

1) Set hostname (if it's not already set)
on hbase/zookeeper quorum server:
$hostname -f 
if it returns "localhost" set hostname to e.g. "myhostname.example.com"
$hostname myhostname.example.com

2) Update /etc/hosts on hbase/zookeeper quorum server
$vi /etc/hosts
<zookeeper ip>   myhostname.example.com myhostname

3) Update /etc/hosts on client host:
$vi /etc/hosts
<zookeeper ip> myhostname.example.com myhostname

4) set JAVA_HOME: 
e.g. on Mac OSX Lion:
$export JAVA_HOME=`/usr/libexec/java_home -v 1.7`

5) get hbase:
Note: For latest Hbase release see: http://hbase.apache.org/
$wget 
http://apache.spinellicreations.com/hbase/stable/hbase-0.98.5-hadoop2-bin.tar.gz
$tar xvzf hbase-0.98.5-hadoop2-bin.tar.gz

6) get phoenix:
$git clone -b 4.0 https://github.com/apache/phoenix.git
$cd phoenix

7) build phoenix:
$mvn package -DskipTests -Dhadoop.profile=2

8) copy phoenix core jar to hbase lib directory:
$cp phoenix-core/target/phoenix-core-4.1.0-SNAPSHOT.jar 
../hbase-0.98.5-hadoop2/lib/

9) Start hbase in standalone mode:
$cd ../hbase-0.98.5-hadoop2/
$bin/start-hbase.sh 
check if running: http://localhost:60010

10) Create table in phoenix:
$cd ../phoenix
$bin/sqlline.py localhost
>CREATE TABLE test.orders ( id BIGINT not null primary key, name VARCHAR);
>UPSERT INTO TEST.ORDERS(ID,NAME) VALUES(123,'foo’);
>SELECT * FROM test.orders;

Notes: 
- For distributed Hbase setup see project home page: 
http://hbase.apache.org/book/standalone_dist.html
- For Hbase setup from Cloudera CDH see: 
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Installation-Guide/cdh5ig_hbase_installation.html
- For Hbase setup from Hortonworks HDP see: 
http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.0/bk_installing_manually_book/content/rpm-chap9.html


  was:
Pls add minimal install instructions including standalone hbase setup

1) Set hostname (if it's not already set)
on hbase/zookeeper quorum server:
>hostname -f 
>hostname myhostname.example.com

2) Update /etc/hosts on hbase/zookeeper quorum server
>vi /etc/hosts
<zookeeper ip>   myhostname.example.com myhostname

3) Update /etc/hosts on client host:
>vi /etc/hosts
<zookeeper ip> myhostname.example.com myhostname

4) set JAVA_HOME: 
e.g. on Mac OSX Lion:
>export JAVA_HOME=`/usr/libexec/java_home -v 1.7`

5) get hbase:
Note: For latest Hbase release see: http://hbase.apache.org/
>wget 
>http://apache.spinellicreations.com/hbase/stable/hbase-0.98.5-hadoop2-bin.tar.gz
>tar xvzf hbase-0.98.5-hadoop2-bin.tar.gz

6) get phoenix:
>git clone -b 4.0 https://github.com/apache/phoenix.git
>cd phoenix

7) build phoenix:
> mvn package -DskipTests -Dhadoop.profile=2

8) copy phoenix core jar to hbase lib directory:
> cp phoenix-core/target/phoenix-core-4.1.0-SNAPSHOT.jar 
> ../hbase-0.98.5-hadoop2/lib/

9) Start hbase in standalone mode:
>cd ../hbase-0.98.5-hadoop2/
>bin/start-hbase.sh 
check if running: http://localhost:60010

10) Create table in phoenix:
>cd ../phoenix
>bin/sqlline.py localhost
>>CREATE TABLE test.orders ( id BIGINT not null primary key, name VARCHAR);
>>UPSERT INTO TEST.ORDERS(ID,NAME) VALUES(123,'foo’);
>>SELECT * FROM test.orders;

Notes: 
- For distributed Hbase setup see: 
http://hbase.apache.org/book/standalone_dist.html
- For Hbase setup from Cloudera CDH see: 
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Installation-Guide/cdh5ig_hbase_installation.html
- For Hbase setup from Hortonworks HDP see: 
http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.0/bk_installing_manually_book/content/rpm-chap9.html



> Add "hello world" instructions
> ------------------------------
>
>                 Key: PHOENIX-1194
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1194
>             Project: Phoenix
>          Issue Type: Improvement
>    Affects Versions: 5.0.0, 3.1, 4.1
>            Reporter: alex kamil
>            Priority: Trivial
>
> Pls add minimal install instructions including standalone hbase setup
> 1) Set hostname (if it's not already set)
> on hbase/zookeeper quorum server:
> $hostname -f 
> if it returns "localhost" set hostname to e.g. "myhostname.example.com"
> $hostname myhostname.example.com
> 2) Update /etc/hosts on hbase/zookeeper quorum server
> $vi /etc/hosts
> <zookeeper ip>   myhostname.example.com myhostname
> 3) Update /etc/hosts on client host:
> $vi /etc/hosts
> <zookeeper ip> myhostname.example.com myhostname
> 4) set JAVA_HOME: 
> e.g. on Mac OSX Lion:
> $export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
> 5) get hbase:
> Note: For latest Hbase release see: http://hbase.apache.org/
> $wget 
> http://apache.spinellicreations.com/hbase/stable/hbase-0.98.5-hadoop2-bin.tar.gz
> $tar xvzf hbase-0.98.5-hadoop2-bin.tar.gz
> 6) get phoenix:
> $git clone -b 4.0 https://github.com/apache/phoenix.git
> $cd phoenix
> 7) build phoenix:
> $mvn package -DskipTests -Dhadoop.profile=2
> 8) copy phoenix core jar to hbase lib directory:
> $cp phoenix-core/target/phoenix-core-4.1.0-SNAPSHOT.jar 
> ../hbase-0.98.5-hadoop2/lib/
> 9) Start hbase in standalone mode:
> $cd ../hbase-0.98.5-hadoop2/
> $bin/start-hbase.sh 
> check if running: http://localhost:60010
> 10) Create table in phoenix:
> $cd ../phoenix
> $bin/sqlline.py localhost
> >CREATE TABLE test.orders ( id BIGINT not null primary key, name VARCHAR);
> >UPSERT INTO TEST.ORDERS(ID,NAME) VALUES(123,'foo’);
> >SELECT * FROM test.orders;
> Notes: 
> - For distributed Hbase setup see project home page: 
> http://hbase.apache.org/book/standalone_dist.html
> - For Hbase setup from Cloudera CDH see: 
> http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Installation-Guide/cdh5ig_hbase_installation.html
> - For Hbase setup from Hortonworks HDP see: 
> http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.0/bk_installing_manually_book/content/rpm-chap9.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to