vivostar commented on PR #973:
URL: https://github.com/apache/bigtop/pull/973#issuecomment-1210022987

   tested on centos-7 x86_64(you can define spark thrift server port by 
editting the site.yaml)
   ```shell
   ./docker-hadoop.sh \
          -d \
          --create 2 \
          --image bigtop/puppet:trunk-centos-7 \
          --memory 8g \
          --repo 
http://repos.bigtop.apache.org/releases/3.1.0/centos/7/\$basearch \
          --disable-gpg-check \
          --stack hdfs,yarn,mapreduce,spark,hive
   [root@37a8654d8c5f /]# netstat -an | grep 12000
   tcp        0      0 0.0.0.0:12000           0.0.0.0:*               LISTEN 
   [root@37a8654d8c5f /]# beeline
   beeline> !connect jdbc:hive2://localhost:12000
   0: jdbc:hive2://localhost:12000> show databases;
   +------------+
   | namespace  |
   +------------+
   | default    |
   +------------+
   1 row selected (0.666 seconds)
   0: jdbc:hive2://localhost:12000> create database tmp;
   +---------+
   | Result  |
   +---------+
   +---------+
   No rows selected (0.284 seconds)
   0: jdbc:hive2://localhost:12000> create table tmp.person(id string, name 
string);
   +---------+
   | Result  |
   +---------+
   +---------+
   No rows selected (0.442 seconds)
   0: jdbc:hive2://localhost:12000> insert overwrite table tmp.person select 
'001', 'Don';
   +---------+
   | Result  |
   +---------+
   +---------+
   No rows selected (2.69 seconds)
   0: jdbc:hive2://localhost:12000> select * from tmp.person;
   +------+-------+
   |  id  | name  |
   +------+-------+
   | 001  | Don   |
   +------+-------+
   1 row selected (1.201 seconds)
    ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to