hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Wang <gw...@gopivotal.com>
Subject Re: hdfsConnect always success
Date Fri, 18 Apr 2014 06:13:59 GMT
Do you got any error message in your log ?



2014-04-18 10:07 GMT+08:00 <tdhkx@126.com>:

> 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;
>
>          }
>
> }
>
>
>
>
>
> *[image: cid:__0@Foxmail.net]*
>
> 黄凯旋 ken
>
> 上海帝联信息科技股份有限公司 研究发展中心研发一部
> Add:上海市普陀区中江路879号天地软件园21号楼1层,200333
> Mob:18962986752
> Web:www.dnion.com
> 全国统一客服热线:400-880-5508
>
> *免责声明**: *
> *此电子邮件包含来自上海帝联信息科技有限公司的信息,而且是机密的信息。这些信息是供所有以上列出的个人或者团体使用的。如果你不属于目标接收人,请注意任何泄露、复制、分发或对此信息内容的使用都是被禁止的。如果你已经错误地收到此电子邮件,请马上致电*
> *86**-**21-61805555 <21-61805555>**通知我们。*
>
> * Disclaimer: This electronic message transmission contains information
> from **dnion.com* <http://www.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
> <21-61805555> *
>
>
>



-- 
Regards
Gordon Wang
Mime
View raw message