ruby on rails - WebHDFS::ServerError when using webhdfs to access HDFS -


i'm using ror3 , webhdfs build web site access hdfs, when i'm using webhdfs in users_controller, webhdfs::servererror response body empty.. response.

my userscontroller code is:

class userscontroller < applicationcontroller ... ...   def create     @user = user.new(params[:user])     # create directory in hdfs user     webhdfs = webhdfs::client.new('lhy-namenode', 50070, 'lhy')     webhdfs.mkdir('abc')     if @user.save       flash[:success] = "welcome"       redirect_to @user     else       render 'new'     end   end ... end 

and error message occurs when click submit button create new user. shows:

webhdfs::servererror in userscontroller#create response body empty.. 

i don't know now, can me? thank much!


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -