You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing the container! After pulling the image we notice that hbase.regionserver.thrift.framed is set to False in the configuration file.
However, the HBase official document and Cloudera troubleshooting page recommends to set hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to True :
This is the recommended transport for thrift servers and requires a similar setting on the client side. Changing this to false will select the default transport, vulnerable to DoS when malformed requests are issued due to THRIFT-601.
To prevent the possibility of crashes due to buffer overruns, use the framed and compact transport protocols by setting hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to true in hbase-site.xml.
Maybe it's better to enable these two parameters? Thank you!
The text was updated successfully, but these errors were encountered:
Thank you for your response!
Yes. As the Cloudera troubleshooting page says, it may require changes to your client code. This answer gives an example:
If framed transport is enabled
We need to modify FROM: from thrift.transport import TTransport transport = TTransport.TBufferedTransport(TSocket.TSocket(host, port))
TO: from thrift.transport.TTransport import TFramedTransport transport = TFramedTransport(TSocket.TSocket(host, port))
If compact protocol is enabled
We need to modify FROM: from thrift.protocol import TBinaryProtocol protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
TO: from thrift.protocol import TCompactProtocol protocol = TCompactProtocol.TCompactProtocol(transport)
Thanks for providing the container! After pulling the image we notice that
hbase.regionserver.thrift.framed
is set toFalse
in the configuration file.However, the HBase official document and Cloudera troubleshooting page recommends to set
hbase.regionserver.thrift.framed
andhbase.regionserver.thrift.compact
toTrue
:This is the recommended transport for thrift servers and requires a similar setting on the client side. Changing this to false will select the default transport, vulnerable to DoS when malformed requests are issued due to THRIFT-601.
To prevent the possibility of crashes due to buffer overruns, use the framed and compact transport protocols by setting hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to true in hbase-site.xml.
Maybe it's better to enable these two parameters? Thank you!
The text was updated successfully, but these errors were encountered: