Monthly Archives: March 2017

java设置一段代码执行的超时时间的简单方法 间接实现获取Connection超时问题

HBase未启动时会持续重试,设置超时来kill掉防止浪费太多时间。 http://alantong08.iteye.com/blog/1646908 java早已经给我们提供了解决方案。jdk1.5自带的并发库中Future类就能满足这个需求。Future类中重要方法包括get()和cancel()。get()获取数据对象,如果数据没有加载,就会阻塞直到取到数据,而... Read More | Share it now!

Exception in thread “main” java.lang.IllegalArgumentException: Not a host:port pair:

...... 380 INFO zookeeper.ZooKeeper - Initiating client connection, connectString=hdp1.dg:2181 sessionTimeout=180000 watcher=hconnection 431 INFO zookeeper.ClientCnxn - Opening socket connection to server hdp1.dg/192.168.6.228:2181 441 INFO... Read More | Share it now!

python升级导致yum命令无法使用的解决办法(修改版)

1、报错信息: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is... Read More | Share it now!

Change IP address of a Hadoop HDFS data node server and avoid Block pool errors

CHANGE HOST IP IN CLOUDERA MANAGER Change Host IP on all node sudo nano /etc/hosts Edit the ip cloudera config.ini on all node if the master node ip changes sudo nano /etc/cloudera-scm-agent/config.ini Change IP in PostgreSQL Database For the... Read More | Share it now!