我正在尝试启动Apache-drill,但是我仍然面临着这个错误。我怎么才能弄清楚呢?
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文件。我又收到了同样的错误!
#
# 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命令的结果:
~$ 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.)发布于 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/。
https://stackoverflow.com/questions/69540495
复制相似问题