You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yesha Vora (JIRA)" <ji...@apache.org> on 2018/07/03 22:03:02 UTC

[jira] [Created] (HDFS-13717) Webhdfs api failed while uploading a tar ball

Yesha Vora created HDFS-13717:
---------------------------------

             Summary: Webhdfs api failed while uploading a tar ball
                 Key: HDFS-13717
                 URL: https://issues.apache.org/jira/browse/HDFS-13717
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 3.1.1
            Reporter: Yesha Vora


Webhdfs call failed while uploading a tarball to HDFS.

{code}
in _run_command
    raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/xxx/hbase.tar.gz -H 'Content-Type: application/octet-stream' --negotiate -u : -k 'https://xxx:20470/webhdfs/v1/hdp/apps/xxx/hbase/hbase.tar.gz?op=CREATE&overwrite=True&permission=444'' returned status_code=403. 
{
  "RemoteException": {
    "exception": "IOException", 
    "javaClassName": "java.io.IOException", 
    "message": "BP-1336964058-xxx.xx.xx.xxx-1530584337961:blk_1073742195_1371 does not exist.\n\tat org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkUCBlock(FSNamesystem.java:5209)\n\tat org.apache.hadoop.hdfs.server.namenode.FSNamesystem.bumpBlockGenerationStamp(FSNamesystem.java:5281)\n\tat org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.updateBlockForPipeline(NameNodeRpcServer.java:947)\n\tat org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.updateBlockForPipeline(ClientNamenodeProtocolServerSideTranslatorPB.java:1096)\n\tat org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)\n\tat org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:523)\n\tat org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)\n\tat org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:872)\n\tat org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:818)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat javax.security.auth.Subject.doAs(Subject.java:422)\n\tat org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1688)\n\tat org.apache.hadoop.ipc.Server$Handler.run(Server.java:2678)\n"
  }
}
 {code}

The tarball is uploaded to HDFS successfully. However, webhdfs api returns with HTTP 403.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org