Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIGTOP-3787. Add docs in Phoenix .deb package #988

Merged
merged 1 commit into from Aug 28, 2022

Conversation

yamasakisua
Copy link
Contributor

  • Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'BIGTOP-3638. Your PR title ...')?
  • Make sure that newly added files do not have any licensing issues. When in doubt refer to https://www.apache.org/licenses/

I list .rpm and .deb files as below.

  • .rpm file.
drwxr-xr-x root/root         0 2022-08-22 02:46 ./usr/share/doc/
drwxr-xr-x root/root         0 2022-08-22 02:46 ./usr/share/doc/phoenix/
-rw-r--r-- root/root     33895 2020-01-22 15:10 ./usr/share/doc/phoenix/LICENSE.gz
-rw-r--r-- root/root      3325 2020-01-22 15:10 ./usr/share/doc/phoenix/NOTICE.gz
-rw-r--r-- root/root       129 2022-08-22 02:46 ./usr/share/doc/phoenix/changelog.Debian.gz
-rw-r--r-- root/root     25756 2021-05-30 15:25 ./usr/share/doc/phoenix/changelog.gz
-rw-r--r-- root/root       318 2022-08-22 02:46 ./usr/share/doc/phoenix/copyright
drwxr-xr-x root/root         0 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/
-rw-r--r-- root/root       149 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/STOCK_SYMBOL.csv
-rw-r--r-- root/root       183 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/STOCK_SYMBOL.sql
-rw-r--r-- root/root      2091 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/WEB_STAT.csv
-rw-r--r-- root/root       296 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/WEB_STAT.sql
-rw-r--r-- root/root       563 2020-01-22 15:10 ./usr/share/doc/phoenix/examples/WEB_STAT_QUERIES.sql
  • .dev files.
/usr/share/doc/phoenix-5.1.2
/usr/share/doc/phoenix-5.1.2/LICENSE
/usr/share/doc/phoenix-5.1.2/NOTICE
/usr/share/doc/phoenix-5.1.2/examples
/usr/share/doc/phoenix-5.1.2/examples/STOCK_SYMBOL.csv
/usr/share/doc/phoenix-5.1.2/examples/STOCK_SYMBOL.sql
/usr/share/doc/phoenix-5.1.2/examples/WEB_STAT.csv
/usr/share/doc/phoenix-5.1.2/examples/WEB_STAT.sql
/usr/share/doc/phoenix-5.1.2/examples/WEB_STAT_QUERIES.sql

@yamasakisua
Copy link
Contributor Author

I could test Phoenix with STOCK_SYMBOL.sql.

$  ./docker-hadoop.sh -C config_debian-10.yaml -c 3 -k "zookeeper, hdfs, hbase"  -L -G
$ ./docker-hadoop.sh --exec 1 bash

root@9fb115917682:/# apt-get install -y phoenix python3
root@9fb115917682:/# ln -s /usr/lib/phoenix/phoenix-server.jar /usr/lib/hbase/lib/phoenix-server.jar
root@9fb115917682:/# systemctl restart hbase-master hbase-regionserver

root@9fb115917682:/#  python3 /usr/lib/phoenix/bin/psql.py /usr/share/doc/phoenix/examples/STOCK_SYMBOL.sql /usr/share/doc/phoenix/examples/STOCK_SYMBOL.csv

root@9fb115917682:/# python3 /usr/lib/phoenix/bin/sqlline.py
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect -p driver org.apache.phoenix.jdbc.PhoenixDriver -p user "none" -p password "none" "jdbc:phoenix:"
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/phoenix/phoenix-client-hbase-2.4-5.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
Connecting to jdbc:phoenix:
22/08/27 16:26:39 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Connected to: Phoenix (version 5.1)
Driver: PhoenixEmbeddedDriver (version 5.1)
Autocommit status: true
Transaction isolation: TRANSACTION_READ_COMMITTED
sqlline version 1.9.0
0: jdbc:phoenix:> SELECT * FROM stock_symbol;
+--------+----------------------+
| SYMBOL |       COMPANY        |
+--------+----------------------+
| AAPL   | APPLE Inc.           |
| CRM    | SALESFORCE           |
| GOOG   | Google               |
| HOG    | Harlet-Davidson Inc. |
| HPQ    | Hewlett Packard      |
| INTC   | Intel                |
| MSFT   | Microsoft            |
| WAG    | Walgreens            |
| WMT    | Walmart              |
+--------+----------------------+
9 rows selected (0.097 seconds)
0: jdbc:phoenix:>

Copy link
Member

@iwasakims iwasakims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@iwasakims iwasakims merged commit 87fe66e into apache:master Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants