作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在使用 phoenix(4.10.0-Hbase-1.2) 开发 hbase(1.2.6)。我收到此错误:
org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations error
下面是我尝试使用 phoenix 连接到 hbase 的代码:
Connection connection = DriverManager.getConnection("jdbc:phoenix:localhost");
下面是我的 hdfs-site.xml 文件,我做了一些更改:
我需要做什么改变?请建议..
最佳答案
与@vrb 的综合回答
Zookeeper端口是非标准端口,需要在与Connection/DriverManager一起使用的jdbc url上指定
Connection connection = DriverManager.getConnection("jdbc:phoenix:localhost:12181");
关于hadoop - 无法使用 phoenix jdbc 驱动程序连接到 hbase(无法获取位置错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44565154/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!