---------- Forwarded message ----------
From: Terry Lu <[email protected]>
Date: 2018-08-10 10:07 GMT+08:00
Subject: 求助:kylin 返回 localhost:18032 failed错误
To: [email protected], [email protected],
[email protected], [email protected]
Cc: [email protected]


Hi:

     我们在使用 Kylin(kylin版本是2.3,  Hadoop是apache hadoop-2.7.3,而且集群全部启动正常 )在创建
Cube到#3 Step Name: Extract Fact Table Distinct Columns时报 localhost:18032
failed错误,然后就将yarn.resourcemanager.address信息添加到了kylin_job_conf.xml这个文件中,原来
Cube创建只能执行到第三步就报错,此时可以执行到第十步, 但此问题还是依然存在,而这个问题也没有解决,
附件是Kylin的日志信息,还有kylin及yarn、mapred的配置文件,请求大师能协助处理一下,我们万分感激!

以下是#10 Step Name: Build Cube In-Mem Duration: 20.19 mins Waiting: 0 seconds的
错误信息如下:



java.net.ConnectException: Call From hsmaster/10.9.0.86 to
localhost:18032 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.GeneratedConstructorAccessor75.newInstance(Unknown 
Source)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:732)
        at org.apache.hadoop.ipc.Client.call(Client.java:1479)
        at org.apache.hadoop.ipc.Client.call(Client.java:1412)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
        at com.sun.proxy.$Proxy66.getNewApplication(Unknown Source)
        at 
org.apache.hadoop.yarn.api.impl.pb.client.ApplicationClientProtocolPBClientImpl.getNewApplication(ApplicationClientProtocolPBClientImpl.java:221)
        at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy67.getNewApplication(Unknown Source)
        at 
org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.getNewApplication(YarnClientImpl.java:219)
        at 
org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.createApplication(YarnClientImpl.java:227)
        at 
org.apache.hadoop.mapred.ResourceMgrDelegate.getNewJobID(ResourceMgrDelegate.java:187)
        at org.apache.hadoop.mapred.YARNRunner.getNewJobID(YARNRunner.java:231)
        at 
org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:153)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
        at 
org.apache.kylin.engine.mr.common.AbstractHadoopJob.waitForCompletion(AbstractHadoopJob.java:175)
        at 
org.apache.kylin.engine.mr.steps.InMemCuboidJob.run(InMemCuboidJob.java:121)
        at 
org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:130)
        at 
org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:162)
        at 
org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:67)
        at 
org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:162)
        at 
org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:300)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at 
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
        at 
org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
        at 
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
        at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
        at org.apache.hadoop.ipc.Client.call(Client.java:1451)
        ... 31 more
result code:2
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
  Licensed 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. See accompanying LICENSE file.
-->

<!-- Put site-specific property overrides in this file. -->

<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
<description>Execution framework set to Hadoop YARN</description>
</property>

<property>
<name>mapreduce.map.memory.mb</name>
<value>4096</value>
</property>

<property>
<name>mapreduce.reduce.memory.mb</name>
<value>8192</value>
</property>

<property>
<name>mapreduce.map.java.opts</name>
<value>-Xmx3072m</value>
</property>

<property>
<name>mapreduce.reduce.java.opts</name>
<value>-Xmx6144m</value>
</property>
<property>  
    <name>mapreduce.reduce.input.buffer.percent</name>  
    <value>0.5</value>  
</property> 
<property>  
    <name>mapred.tasktracker.reduce.tasks.maximum</name>  
    <value>2</value>  
</property> 


<property>
    <name>mapreduce.jobhistory.address</name>
    <value>10.9.0.86:10020</value>
</property>
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>10.9.0.86:19888</value>
</property>

   <property>  
     <name>yarn.app.mapreduce.am.staging-dir</name>  
     <value>/bigdata/tools/hadoop-2.7.3/data/mapred/staging</value>  
  </property>  
  <property>  
     <name>mapreduce.jobhistory.intermediate-done-dir</name>  
     <value>${yarn.app.mapreduce.am.staging-dir}/history/done_intermediate</value>  
  </property>  
  <property>  
     <name>mapreduce.jobhistory.done-dir</name>  
     <value>${yarn.app.mapreduce.am.staging-dir}/history/done</value>  
  </property> 

<property>
 <name>yarn.app.mapreduce.am.env</name>
 <value>HADOOP_MAPRED_HOME=/bigdata/tools/hadoop-2.7.3</value>
</property>

<property>
 <name>mapreduce.map.env</name>
 <value>HADOOP_MAPRED_HOME=/bigdata/tools/hadoop-2.7.3</value>
</property>

<property>
 <name>mapreduce.reduce.env</name>
 <value>HADOOP_MAPRED_HOME=/bigdata/tools/hadoop-2.7.3</value>
</property>
 <property>
  <name>yarn.app.mapreduce.am.admin.user.env</name>
  <value>LD_LIBRARY_PATH=$HADOOP_COMMON_HOME/lib/native:$JAVA_LIBRARY_PATH</value>
 </property>

</configuration>

<?xml version="1.0"?>
<!--
  Licensed 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. See accompanying LICENSE file.
-->
<configuration>

<property>
<name>yarn.nodemanager.aux-services</name>
<value>spark_shuffle,mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.spark_shuffle.class</name>
<value>org.apache.spark.network.yarn.YarnShuffleService</value>
</property>

<property>
<name>yarn.nodemanager.aux-services.spark_shuffle.classpath</name>
<value>/bigdata/tools/hadoop-2.7.3/lib/*</value>
</property>

<property>  
    <name>mapreduce.jobtracker.staging.root.dir</name>  
    <value>/bigdata/tools/hadoop-2.7.3/data/mapred/staging</value>  
</property>  
<property>  
   <name>yarn.app.mapreduce.am.staging-dir</name>  
   <value>/bigdata/tools/hadoop-2.7.3/data/mapred/staging</value>  
</property> 

<property>
<name>yarn.resourcemanager.scheduler.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</value>
</property>

<property>
<name>spark.shuffle.service.port</name>
<value>7337</value>
</property>

<property>
<name>yarn.scheduler.fair.user-as-default-queue</name>
<value>false</value>
</property>
<property>
<name>yarn.scheduler.fair.preemption</name>
<value>true</value>
</property>
<property>
<name>yarn.scheduler.fair.allocation.file</name>
<value>/bigdata/tools/hadoop-2.7.3/etc/hadoop/fair-scheduler.xml</value>
</property>

<property>
<name>yarn.nodemanager.address</name>
<value>10.9.0.86:8041</value>
</property>
<property>
<name>yarn.resouremanager.hostname</name>
<value>10.9.0.86</value>
</property>


<property>
<name>yarn.resourcemanager.scheduler.address</name>
<value>10.9.0.86:18030</value>
</property>
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>10.9.0.86:18031</value>
</property>
<property>
<name>yarn.resourcemanager.address</name>
<value>10.9.0.86:18032</value>
</property>
<property>
<name>yarn.resourcemanager.admin.address</name>
<value>10.9.0.86:18033</value>
</property>



<property>
<name>yarn.resourcemanager.webapp.address</name>
<value>10.9.0.86:8088</value>
</property>

<property>
<name>yarn.resourcemanager.webapp.https.address</name>
<value>10.9.0.86:8090</value>
</property>

<property>
<name>yarn.scheduler.maxinum-allocation-mb</name>
<value>18432</value>
</property>
<property>
<name>yarn.log-addregation-enable</name>
<value>true</value>
<discription></discription>
</property>

<!-- Site specific YARN configuration properties -->

<property>
<name>yarn.scheduler.minimum-allocation-mb</name>
<value>1024</value>
</property>
<property>
<name>yarn.scheduler.maximum-allocation-mb</name>
<value>8192</value>
</property>
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>22528</value>
</property>
<property>
<name>yarn.nodemanager.vmem-pmem-ratio</name>
<value>2.1</value>
</property>






</configuration>
<!--
  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.
-->
<configuration>

    <property>
        <name>mapreduce.job.split.metainfo.maxsize</name>
        <value>-1</value>
        <description>The maximum permissible size of the split metainfo file.
            The JobTracker won't attempt to read split metainfo files bigger than
            the configured value. No limits if set to -1.
        </description>
    </property>

    <property>
        <name>mapreduce.map.output.compress</name>
        <value>true</value>
        <description>Compress map outputs</description>
    </property>

    <!--
    The default map outputs compress codec is org.apache.hadoop.io.compress.DefaultCodec,
    if SnappyCodec is supported, org.apache.hadoop.io.compress.SnappyCodec could be used.
    -->
    <!--
    <property>
        <name>mapreduce.map.output.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description>The compression codec to use for map outputs
        </description>
    </property>
    -->
    <property>
        <name>mapreduce.output.fileoutputformat.compress</name>
        <value>true</value>
        <description>Compress the output of a MapReduce job</description>
    </property>
    <!--
    The default job outputs compress codec is org.apache.hadoop.io.compress.DefaultCodec,
    if SnappyCodec is supported, org.apache.hadoop.io.compress.SnappyCodec could be used.
    -->
    <!--
    <property>
        <name>mapreduce.output.fileoutputformat.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description>The compression codec to use for job outputs
        </description>
    </property>
    -->
    <property>
        <name>mapreduce.output.fileoutputformat.compress.type</name>
        <value>BLOCK</value>
        <description>The compression type to use for job outputs</description>
    </property>


    <property>
        <name>mapreduce.job.max.split.locations</name>
        <value>2000</value>
        <description>No description</description>
    </property>

    <property>
        <name>dfs.replication</name>
        <value>2</value>
        <description>Block replication</description>
    </property>

    <property>
        <name>mapreduce.task.timeout</name>
        <value>3600000</value>
        <description>Set task timeout to 1 hour</description>
    </property>


<property>
<name>yarn.resouremanager.hostname</name>
<value>10.9.0.86</value>
</property>
<property>
<name>yarn.resourcemanager.scheduler.address</name>
<value>10.9.0.86:18030</value>
</property>
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>10.9.0.86:18031</value>
</property>
<property>
<name>yarn.resourcemanager.address</name>
<value>10.9.0.86:18032</value>
</property>
<property>
<name>yarn.resourcemanager.admin.address</name>
<value>10.9.0.86:18033</value>
</property>


</configuration>

Reply via email to