phoenix安装

女生的网名这么多〃 提交于 2019-12-22 09:43:33

下载

wget http://ftp.tc.edu.tw/pub/Apache/phoenix/apache-phoenix-5.0.0-HBase-2.0/bin/apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz

解压缩

tar zxvf apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz

拷贝

cp phoenix-5.0.0-HBase-2.0-server.jar /usr/local/hbase-2.1.0/lib/

验证

$ ./sqlline.py xxxx:2181
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:xxxx:2181 none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:xxxx:2181
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/apache-phoenix-5.0.0-HBase-2.0-bin/phoenix-5.0.0-HBase-2.0-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
19/11/15 15:58:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Connected to: Phoenix (version 5.0)
Driver: PhoenixEmbeddedDriver (version 5.0)
Autocommit status: true
Transaction isolation: TRANSACTION_READ_COMMITTED
Building list of tables and columns for tab-completion (set fastconnect to true to skip)...
133/133 (100%) Done
Done
sqlline version 1.2.0
0: jdbc:phoenix:xxxx> !tables
+------------+--------------+-------------+---------------+----------+--+
| TABLE_CAT  | TABLE_SCHEM  | TABLE_NAME  |  TABLE_TYPE   | REMARKS  |  |
+------------+--------------+-------------+---------------+----------+--+
|            | SYSTEM       | CATALOG     | SYSTEM TABLE  |          |  |
|            | SYSTEM       | FUNCTION    | SYSTEM TABLE  |          |  |
|            | SYSTEM       | LOG         | SYSTEM TABLE  |          |  |
|            | SYSTEM       | SEQUENCE    | SYSTEM TABLE  |          |  |
|            | SYSTEM       | STATS       | SYSTEM TABLE  |          |  |
+------------+--------------+-------------+---------------+----------+--+
0: jdbc:phoenix:xxx>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!