我已经在 3 台具有完全分布式模式的机器上配置了 hadoop1.0.3。在下面的第一台机器上,作业正在运行:
1) 4316 SecondaryNameNode 4006 NameNode 4159 DataNode 4619 TaskTracker 4425 JobTracker
2) 2794 TaskTracker 2672 DataNode
3) 3338 DataNode 3447 TaskTracker
现在,当我在其上运行简单的 map reduce 作业时,执行 map reducejob 需要更长的时间。所以我在 Hadoop 上安装了 HBASE 层。现在我在 3 个集群上具有以下 HBASE 进程。
1) 5115 HQuorumPeer 5198 HMaster 5408 HRegionServer
2) 3719 HRegionServer
3) 2719 HRegionServer
现在我按照说明安装了 Phoenix:
https://github.com/forcedotcom/phoenix#installation 但我不明白在哪里安装凤凰客户端?我安装在同一台主机上,但我无法调用以下命令。
./psql.sh master(动物园管理员名称) ../examples/web_stat.sql ../examples/web_stat.csv ../examples/web_stat_queries.sql
它给出以下错误:
com.salesforce.phoenix.exception.PhoenixIOException: Retried 10 times
at com.salesforce.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:123)
at com.salesforce.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:106)
at com.salesforce.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:599)
at com.salesforce.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:777)
at com.salesforce.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:365)
at com.salesforce.phoenix.compile.CreateTableCompiler$1.execute(CreateTableCompiler.java:81)
at com.salesforce.phoenix.jdbc.PhoenixStatement$ExecutableCreateTableStatement.executeUpdate(PhoenixStatement.java:278)
at com.salesforce.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:741)
at com.salesforce.phoenix.util.SchemaUtil.initMetaData(SchemaUtil.java:332)
at com.salesforce.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:861)
at com.salesforce.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:151)
at com.salesforce.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:157)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:222)
at com.salesforce.phoenix.util.PhoenixRuntime.main(PhoenixRuntime.java:168)
Caused by: org.apache.hadoop.hbase.MasterNotRunningException: Retried 10 times
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:138)
at com.salesforce.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:517)