Sunday, September 23, 2012

Lily cluster setup - HDFS permission issue and solution

Really enjoy using Lily, a framework for easily working with HBase and Solr. I hadn't set up a Lily cluster in awhile and was perplexed with these kinds of errors when starting the Lily service from my datanodes:

But when I started the Lily server as root, it seemed to work but this wasn't an optimal solution. This means my hdfs directory permissions weren't set properly since lily contacts hdfs as whatever user you start as. I had to set the user/group of /lily to lily:lily from the namenode: