We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Webhdfs request with data node failure

Thread ID:





130531 May 17,2017 08:25 AM UTC May 18,2017 01:42 PM UTC Big Data Platform 1
Tags: General
Asked On May 17, 2017 08:25 AM UTC

i have a syncfusion cluster that consists of four nodes
mn1,mn2 , dn1 and dn2
and i have asked before about high availability with webhdfs request in this question
so if we want to upload a file called myfile under hadoophome
we should issue the url
and in  the state of name node failure  we have to handle that from client application as you mentioned and it worked well
but what about the state of data node failure
suppose that dn2 is off and I issued upload  request from my project to active name node  mn1  so mn1 should redirect this request to dn1  (I mean to live nodes only)
but it redirects it to dn1 some times  and the request successes
and sometimes to dn2 and the request fails with request time out
should data node failure be handled from project too ,and how to specify the node that we should redirect  too and offset value  in upload request
any help please ؟

Nandhini K [Syncfusion]
Replied On May 18, 2017 01:42 PM UTC

Hi Shadi, 
Thank you for using Syncfusion products. 
Please find the response as follows, 
Should data node failure be handled from project too? 
No. we don’t want to handle it from the client side project. 
It should be handled by Name Node itself. The reason to redirect to dead node(here dn2) sometimes is that the Name Node takes certain amount of time to mark the node as dead based on the below mentioned properties. The default time that takes to mark any dead node is 10 minutes. But you can change it as needed in Hdfs-site.xml using cluster manager by referring this link. 
Default value 
This time decides the interval to check for expired datanodes. With this value and dfs.heartbeat.interval, the interval of deciding the datanode is stale or not is also calculated. The unit of this configuration is millisecond. 
Determines data node heartbeat interval in seconds. 
The maximum period to keep a DN in the excluded nodes list at a client. After this period, in milliseconds, the previously excluded node(s) will be removed automatically from the cache. The unit of this configuration is millisecond. 
how to specify the node that we should redirect  too? 
By default we can’t do that and it is not recommended too. 
Recommendation is let Name Node handle it. 
offset value  in upload request? 
We have created a custom sample for your requirement. In the sample, enter the offset value of a uploading file. It will upload a file with text starting from the given offset value. 
We can set offset value request only for file Open type operations.  Upload operations does not include open operation. 
For example: 
Please find more details about offset in the following link  
Nandhini K 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon