How to secure thrift server crash if receives invalid data?

0 votes
Can anyone explain how to secure thrift server crash if receives invalid data?
May 29 in Big Data Hadoop by sanju
10 views

1 answer to this question.

0 votes

Hey,

The Thrift server may crash if it receives a large amount of invalid data, this happens when the Thrift server allocates memory to check the validity of data it receives. If it receives a large amount of invalid data, it may need to allocate more memory than is available. This is due to a limitation in the Thrift library itself.

To prevent the possibility of crashes due to buffer overruns, use the framed and compact transport protocols. These protocols are disabled by default, because they may require changes to your client code. The two options to add to your hbase-site.xml are 

hbase.regionserver.thrift.framed    

and

hbase.regionserver.thrift.compact

Set each of these to true, as in the XML below.

<property>
  <name>hbase.regionserver.thrift.framed</name>
  <value>true</value>
</property>
<property> 

<property>
  <name>hbase.regionserver.thrift.compact</name>
  <value>true</value>
</property>

answered May 29 by Gitika
• 19,920 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to import data to HBase from SQL server?

You can easily import the data from ...READ MORE

answered Apr 20, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
292 views
0 votes
1 answer

How can we send data from MongoDB to Hadoop?

The MongoDB Connector for Hadoop reads data ...READ MORE

answered Mar 26, 2018 in Big Data Hadoop by nitinrawat895
• 10,150 points
61 views
0 votes
1 answer

How to learn Big Data and Ecosystem ?

First understand Big Data and challenges associated ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
27 views
0 votes
1 answer

How to move data from Oracle database to Hadoop?

Yes, you heard it correctly. Apache Sqoop is ...READ MORE

answered Apr 11, 2018 in Big Data Hadoop by nitinrawat895
• 10,150 points
1,497 views
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,150 points
2,059 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,542 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
771 views
0 votes
1 answer

How to add server-side configuration for secure operation in HBase?

Hey, First, ensure that your underlying HDFS configuration ...READ MORE

answered May 31 in Big Data Hadoop by Gitika
• 19,920 points
15 views
0 votes
1 answer

How to insert data inside the database in Linux?

First you need to create a table ...READ MORE

answered Apr 16 in Big Data Hadoop by Gitika
• 19,920 points
51 views