首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:启动嵌入式钻头失败: java.io.IOException(Ubuntu)

错误:启动嵌入式钻头失败: java.io.IOException(Ubuntu)
EN

Stack Overflow用户
提问于 2021-10-12 12:24:04
回答 1查看 81关注 0票数 0

我正在尝试启动Apache-drill,但是我仍然面临着这个错误。我怎么才能弄清楚呢?

代码语言:javascript
复制
Error: Failure in starting embedded Drillbit: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8047 (state=,code=0)

我试着像下面这样编辑drill-override.conf文件。我又收到了同样的错误!

代码语言:javascript
复制
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#  This file tells Drill to consider this module when class path scanning.
#  This file can also include any supplementary configuration information.
#  This file is in HOCON format, see https://github.com/typesafehub/config/blob/master/HOCON.md for more information.

# See 'drill-override-example.conf' for example configurations

drill.exec: {
  cluster-id: "drillbits1",
  zk.connect: "localhost:8048"
}

此外,您还可以看到netstat命令的结果:

代码语言:javascript
复制
~$ netstat -tlnp | grep 8047
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6      11      0 :::8047                 :::*                    LISTEN      12801/java


:~$ netstat -tlnp | grep 8048
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
EN

回答 1

Stack Overflow用户

发布于 2021-10-12 17:57:30

Amin,我认为您需要在您的配置中显式地设置Drill使用的端口。配置参数是drill.exec.http.port

有关如何设置配置的更多详细信息,请查看此处的文档:https://drill.apache.org/docs/ports-used-by-drill/和此处的:https://drill.apache.org/docs/start-up-options/

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69540495

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档