You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by Hanish Bansal <ha...@gmail.com> on 2014/12/09 15:36:51 UTC
Source code not compilable
Hi All,
I am trying to build the ranger from source code. I have downloaded the
code from 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*
Re: Source code not compilable
Posted by Hanish Bansal <ha...@gmail.com>.
Filed a jira for same for tracking.
Link: https://issues.apache.org/jira/browse/RANGER-197
On Tue, Dec 9, 2014 at 8:56 PM, Hanish Bansal <
hanish.bansal.agarwal@gmail.com> wrote:
> Thanks for quick response.
>
> I have a question regarding this why we are using snapshot versions? For
> hadoop it is also using snapshot version.
>
> Regards,
> Hanish
> On 09/12/2014 8:25 pm, "Selvamohan Neethiraj" <sn...@apache.org> wrote:
>
>> 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 <
>> hanish.bansal.agarwal@gmail.com> 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.
>>
>> 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*
>>
>>
>>
--
*Thanks & Regards*
*Hanish Bansal*
Re: Source code not compilable
Posted by Hanish Bansal <ha...@gmail.com>.
Thanks for quick response.
I have a question regarding this why we are using snapshot versions? For
hadoop it is also using snapshot version.
Regards,
Hanish
On 09/12/2014 8:25 pm, "Selvamohan Neethiraj" <sn...@apache.org> wrote:
> 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 <ha...@gmail.com>
> 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.
>
> 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*
>
>
>
Re: Source code not compilable
Posted by Selvamohan Neethiraj <sn...@apache.org>.
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 <hanish.bansal.agarwal@gmail.com <ma...@gmail.com>> 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