Hi, The compilation issue was due to a change in HBase library (since we referred SNAPSHOT libraries). We are working on a another short release (Ranger 0.4.1) to fix this compilation issue. In the meanwhile, your source code change is the right approach to continue build & deploy ...
Thanks, Selva- > On Dec 9, 2014, at 9:36 AM, Hanish Bansal <[email protected] > <mailto:[email protected]>> wrote: > > Hi All, > > I am trying to build the ranger from source code. I have downloaded the code > from https://github.com/apache/incubator-ranger > <https://github.com/apache/incubator-ranger>. > > When I am compiling the code, i was getting below error: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) > on project ranger-hbase-plugin: Compilation failure > [ERROR] > /home/hanish/Downloads/incubator-ranger-ranger-0.4.0-rc3/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java:[30,43] > cannot find symbol > [ERROR] symbol: method init(org.apache.hadoop.hbase.master.MasterServices) > [ERROR] location: class > org.apache.hadoop.hbase.security.access.AccessControlLists > > I debug the code and found that ranger code is using 0.99.2-SNAPSHOT version > and this version of hbase don't have init method. > > I tried by changing the hbase version in ranger pom file but that didn't work. > > After that i checked out code of hbase 0.99.2 and found that there is similar > method to init with named createACLTable. So i changed the below source code > file > (hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java) > of ranger : > AccessControlLists.init(master); > to > AccessControlLists.createACLTable(master); > After changes code compiled successfully. > > Please let me know if i am doing anything wrong. > > -- > Thanks & Regards > Hanish Bansal
