barchart / barchart-udt

Java wrapper for native C++ UDT protocol.
https://github.com/barchart/barchart-udt/wiki
128 stars 89 forks source link

can not set recivef buffer #79

Open vector20240801 opened 8 years ago

vector20240801 commented 8 years ago

My programe was working in centOS 6.8 with barchart 2.3.0,the Serversocket was binded on port 1002 and when I use the API it throw an Exeption that com.barchart.udt.ExceptionUDT: UDT Error : 5001 : cannot execute the operation on a bound socket : setOption0:setsockopt [id: 0x1edba9c8] at com.barchart.udt.SocketUDT.setOption0(Native Method) at com.barchart.udt.SocketUDT.setOption(SocketUDT.java:1468) at com.barchart.udt.SocketUDT.setReceiveBufferSize(SocketUDT.java:1487) at com.barchart.udt.net.NetServerSocketUDT.setReceiveBufferSize(NetServerSocketUDT.java:132) at org.apache.hadoop.hdfs.net.UdtPeerServer.setReceiveBufferSize(UdtPeerServer.java:122) at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(DataNode.java:911) at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1128) at org.apache.hadoop.hdfs.server.datanode.DataNode.(DataNode.java:436) at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2403) at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2290) at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2337) at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2514) at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2538)