hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <td...@126.com>
Subject hdfsConnect always success
Date Fri, 18 Apr 2014 02:07:18 GMT
Hi,

 

When I run program as followed,connect to a remote host not existed, always
return “HDFS connect OK.”

 

 

int main()

{

         hdfsFS fs = NULL;

         fs = hdfsConnect("172.16.19.28", 8020);

         if (fs == NULL)

         {

                   printf("HDFS connect error.\n");

                   return -1;

         }

         else 

         {

                   printf("HDFS connect OK.\n");

                   return 0;

         }

}

 

 

cid:__0@Foxmail.net

黄凯旋 ken

上海帝联信息科技股份有限公司 研究发展中心研发一部
Add:上海市普陀区中江路879号天地软件园21号楼1层,200333
Mob:18962986752
Web: <http://www.dnion.com/> www.dnion.com
全国统一客服热线:400-880-5508 

免责声明: 此电子邮件包含来自上海帝联信息科技有限公司的信息,而且是机密的信
息。这些信息是供所有以上列出的个人或者团体使用的。如果你不属于目标接收人,请
注意任何泄露、复制、分发或对此信息内容的使用都是被禁止的。如果你已经错误地收
到此电子邮件,请马上致电86-21-61805555通知我们。 

Disclaimer: This electronic message transmission contains information from
<http://www.dnion.com/> dnion.com and is confidential or privileged. The
information is intended to be for the use of the individual or entity named
above. If you are not the intended recipient, be aware that any disclosure,
copying, distribution, or use of the contents of this information is
prohibited. If you have received this transmission in error, please notify
us by telephone immediately at 86-21-61805555 

 

Mime
View raw message