Harshakiran Reddy created HDFS-13918:
----------------------------------------

             Summary: Direct Exception is Printing in Console, when we given 
the invalid IPC port for TirggerBlockReport Command
                 Key: HDFS-13918
                 URL: https://issues.apache.org/jira/browse/HDFS-13918
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: datanode
            Reporter: Harshakiran Reddy


{noformat}
/namenode/bin > ./hdfs dfsadmin -triggerBlockReport Datanodeip:9864
2018-09-17 12:58:43,866 WARN net.NetUtils: Unable to wrap exception of type 
class org.apache.hadoop.ipc.RpcException: it has no (String) constructor
java.lang.NoSuchMethodException: 
org.apache.hadoop.ipc.RpcException.<init>(java.lang.String)
        at java.lang.Class.getConstructor0(Class.java:3082)
        at java.lang.Class.getConstructor(Class.java:1825)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:830)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:806)
        at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1503)
        at org.apache.hadoop.ipc.Client.call(Client.java:1445)
        at org.apache.hadoop.ipc.Client.call(Client.java:1355)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
        at com.sun.proxy.$Proxy8.triggerBlockReport(Unknown Source)
        at 
org.apache.hadoop.hdfs.protocolPB.ClientDatanodeProtocolTranslatorPB.triggerBlockReport(ClientDatanodeProtocolTranslatorPB.java:327)
        at 
org.apache.hadoop.hdfs.tools.DFSAdmin.triggerBlockReport(DFSAdmin.java:732)
        at org.apache.hadoop.hdfs.tools.DFSAdmin.run(DFSAdmin.java:2406)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
        at org.apache.hadoop.hdfs.tools.DFSAdmin.main(DFSAdmin.java:2567)
triggerBlockReport error: java.io.IOException: Failed on local exception: 
org.apache.hadoop.ipc.RpcException: RPC response exceeds maximum data length; 
Host Details : local host is: "Datanodeip/Datanodeip"; destination host is: 
"datanodeip":9864;
namenode/bin >
{noformat}

{{Actual Output:-}}

 In console logs Printing Direct exception, bellow is the exception  

{color:#14892c}2018-09-17 12:58:43,866 WARN net.NetUtils: Unable to wrap 
exception of type class org.apache.hadoop.ipc.RpcException: it has no (String) 
constructor
java.lang.NoSuchMethodException: 
org.apache.hadoop.ipc.RpcException.<init>(java.lang.String){color}

{{Excepted Output:-}}

Direct exception shouldn't print in console logs. 





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

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

Reply via email to