找到你要的答案

Q:Failed with exception Wrong FS error in Hive 0.11 in CDH5

Q:失败,异常错误错误0.11 FS蜂巢CDH5

I tried to load a Hive table in S3 but I got the following error:

Failed with exception Wrong FS: s3n://.... expected: hdfs://

It looks like I can only use a local HDFS for this somehow? That's very inconvenience for me. My S3 credentials are set correctly (have Write permission to the S3 bucket I used). When I tried with HDFS (still reading from s3n from writing to HDFS), my query worked fine. Also I have a Pig script (0.12) reading from and writing to s3n, it is working fine.

I am using CDH5.4 and any insight would be appreciated.

我试图在S3蜂房表负荷但我得到了下面的错误:

Failed with exception Wrong FS: s3n://.... expected: hdfs://

看来我只能使用本地HDFS这不知何故?那对我很不方便。我的S3凭据设置正确(有写权限我用S3桶)。当我试图与HDFS(仍读三写入HDFS),我的查询工作良好。我也有一只猪脚本(0.12)读写三,它工作正常。

我用cdh5.4和洞察力将不胜感激。

hive  cloudera-cdh