centos 6.3运维踩过的坑---Temporary failure in name resolution 安装FusionInsight_Cluster_1_Services_clientCon

潘翰藻
2023-12-01

centos 6.3运维踩过的坑—Temporary failure in name resolution 安装FusionInsight_Cluster_1_Services_clientCon

报错如下:
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# ntpq -nc ‘as’ |awk ‘{print $2}’ |grep ‘[0-9]{1,}’ |xargs -i /usr/sbin/ntpq -nc ‘rv {} offset’ |grep offset= |cut -d= -f2 |cut -d. -f1 |head -n 1
Temporary failure in name resolution
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# ntpq -np
Temporary failure in name resolution
[root@was FusionInsight_Cluster_1_Services_ClientConfig]#
root@was opt]# cd /opt/client/FusionInsight_Cluster_1_Services_ClientConfig
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# ls
application.properties conf.py Hive install.sh Kafka publicLib refreshConfig.sh switchuser.py
bigdata_env.sample HBase hosts JDK KrbClient readme Spark Yarn
ca.crt HDFS install.bat jython-standalone-2.7.1.jar log4j.properties realm.ini Spark2x ZooKeeper

学无止境²º20จุ๊บ:
[root@was ~]# cd /opt/client/FusionInsight_Cluster_1_Services_ClientConfig
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# ls
application.properties conf.py Hive install.sh Kafka publicLib refreshConfig.sh switchuser.py
bigdata_env.sample HBase hosts JDK KrbClient readme Spark Yarn
ca.crt HDFS install.bat jython-standalone-2.7.1.jar log4j.properties realm.ini Spark2x ZooKeeper
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# rm -rf /opt/hadoopclient
[root@was FusionInsight_Cluster_1_Services_ClientConfig]# ./install.sh /opt/hadoopclient
[20-07-06 16:00:11]: Pre-install check begin…
[20-07-06 16:00:11]: Checking necessary files and directory.
[20-07-06 16:00:11]: Checking NTP service status.
[20-07-06 16:00:11]: Checking “/etc/hosts” config.
awk: warning: escape sequence \.' treated as plain.’
[20-07-06 16:00:11]: Warning: “/etc/hosts” is not properly configed with “1.1.1.1 hadoop.hadoop.com” file: /opt/client/FusionInsight_Cluster_1_Services_ClientConfig/realm.ini
[20-07-06 16:00:11]: Pre-install check is complete.
[20-07-06 16:00:11]: Precheck on components begin…
[20-07-06 16:00:11]: Precheck on components is complete.
[20-07-06 16:00:11]: Deploy “dest_hosts” begin …
[20-07-06 16:00:11]:

学无止境²º20จุ๊บ:
[20-07-06 16:00:11]: Deploy “dest_hosts” is complete.
[20-07-06 16:00:11]: Install public library begin …
[20-07-06 16:00:11]: Install Fiber begin …
[20-07-06 16:00:11]: Deploy Fiber client to /opt/hadoopclient/Fiber
[20-07-06 16:00:11]: Create Fiber env file “/opt/hadoopclient/Fiber/component_env”.
[20-07-06 16:00:11]: Create Fiber conf file “/opt/hadoopclient/Fiber/conf/fiber.xml”
[20-07-06 16:00:11]: Fiber installation is complete.
[20-07-06 16:00:11]: Public library installation is complete.
[20-07-06 16:00:11]: Install components client begin …
[20-07-06 16:00:11]: Install HBase begin …
[20-07-06 16:00:11]: Copy /opt/client/FusionInsight_Cluster_1_Services_ClientConfig/HBase/FusionInsight-HBase-1.3.1.tar.gz to /opt/hadoopclient/HBase.
/opt/client/FusionInsight_Cluster_1_Services_ClientConfig/HBase
[20-07-06 16:00:12]: Copy HBase config files to “/opt/hadoopclient/HBase/hbase/conf”
[20-07-06 16:00:12]: Create HBase env file “/opt/hadoopclient/HBase/component_env”.
[20-07-06 16:00:12]: Setup fiber conf started.
[20-07-06 16:00:12]: HBase installation is complete.
[20-07-06 16:00:12]: Install HDFS begin …
[20-07-06 16:00:12]: Copy /opt/client/FusionInsight_Cluster_1_Services_ClientConfig/HDFS/FusionInsight-Hadoop-3.1.1.tar.gz to /opt/hadoopclient/HDFS.
/opt/client/FusionInsight_Cluster_1_Services_ClientConfig/HDFS
[20-07-06 16:00:12]: Copy Hadoop config files to “/opt/hadoopclient/HDFS/hadoop/etc/hadoop”
[20-07-06 16:00:13]: Create Hadoop env file “/opt/hadoopclient/HDFS/component_env”.
[20-07-06 16:00:13]: HDFS installation is complete.
[20-07-06 16:00:13]: Install Hive begin …
[20-07-06 16:00:13]: Deploy Hive client directory to /opt/hadoopclient/Hive.
/opt/client/FusionInsight_Cluster_1_Services_ClientConfig/Hive
[20-07-06 16:00:13]: start to generate /opt/hadoopclient/Hive/Beeline/conf/beeline_hive_jaas.conf for beeline…
[20-07-06 16:00:13]: generated /opt/hadoopclient/Hive/Beeline/conf/beeline_hive_jaas.conf
[20-07-06
分享一下昨日踩过的坑

应客户要求需要把我们mpp数据库交维出去,对方要求我们服务器不能存在漏洞,基本服务可用。

其中ntp服务出现了问题,ntp服务是正常的,但是ntpq -p这个命令返回报错

Temporary failure in name resolution

经过一番周折: 1、安装本地yum源,卸载ntp服务重新安装

                       2、重启网卡

                       3、甚至我都想不用ntp了

后来发现是Hosts文件出了问题,(查自周小董的文章)

此处是因为localhost.localdomain无法解析造成的,此时修改/etc/hosts,添加如下行解决

127.0.0.1 localhost.localdomain localhost

 类似资料: