gpt4 book ai didi

java - Jetty ALPN 未正确配置 - Hadoop/Google Bigtable

转载 作者:行者123 更新时间:2023-11-29 04:54:39 25 4
gpt4 key购买 nike

当我尝试连接到 Google Cloud BigTable 时,有人知道如何解决 Jetty ALPN 未正确配置的错误吗?

Blockquote 2015-12-11 19:53:15,056 INFO [main] grpc.BigtableSession: Opening connection for projectId crawl-corpus-app, zoneId us-central1-c, clusterId crawl-corpus, on data host bigtable.googleapis.com, table admin host bigtabletableadmin.googleapis.com. java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:240)................................................................................................................................................ Caused by: java.lang.IllegalStateException: Jetty ALPN has not been properly configured. at com.google.cloud.bigtable.grpc.BigtableSession.(BigtableSession.java:243) at com.google.cloud.bigtable.grpc.BigtableSession.(BigtableSession.java:232) at org.apache.hadoop.hbase.client.AbstractBigtableConnection.(AbstractBigtableConnection.java:128) at com.google.cloud.bigtable.hbase1_1.BigtableConnection.(BigtableConnection.java:42)

    public static void main(String[] args) {
Connection connection;
try {
connection = ConnectionFactory.createConnection();
} catch (IOException e) {
e.printStackTrace();
}

最佳答案

我需要为 Jetty alpn-boot 添加一个 VM 选项。

 -Xbootclasspath/p:C:\Users\cleuer\.m2\repository\org\mortbay\jetty\alpn\alpn-boot\8.1.3.v20150130\alpn-boot-8.1.3.v20150130.jar

关于java - Jetty ALPN 未正确配置 - Hadoop/Google Bigtable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34236120/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com