Re: Ranger question

2016-06-20 Thread Hafiz Mujadid
Request(url); > } > > Run the above program, the statusCode is 401! Unauthorized ! > Could I add any parameter when I call the rest api? How to resolve the > problem? I hope you can describe how to call ranger rest api on > https://cwiki.apache.org/confluence/display/RANGER/Index . > > Thank you very much! Good Luck! > > Haihui Xu. > -- Regards: HAFIZ MUJADID

Ranger KMS plugin

2016-06-03 Thread Hafiz Mujadid
guidelines to setup ranger kms on manual environment. Thanks -- Regards: HAFIZ MUJADID

Re: Group level permission are not working in ranger

2015-12-03 Thread Hafiz Mujadid
y users. > > In the future release, I feel, we should provide a way to mark certain > folders to be managed exclusively by Ranger. And that will remove a lot of > confusion and also make the policy management more predictable. > > Does it answer your question? > > Bosco > &g

Re: Group level permission are not working in ranger

2015-12-01 Thread Hafiz Mujadid
ything because there are > folders like tmp and user folders which want the system and user to manage > themselves. But for application folders like Hive warehouse, you should let > Ranger manage it. > > Bosco > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-T

Re: hdfs plugin enable issue

2015-11-30 Thread Hafiz Mujadid
Following are the contents Ramesh! 1. isable-hdfs-plugin.sh 2. install 3. lib 4. upgrade-hdfs-plugin.sh 5. enable-hdfs-plugin.sh 6. install.properties 7. ranger_credential_helper.py 8. upgrade-plugin.py On Mon, Nov 30, 2015 at 9:39 PM, Hafiz Mujadid <hafizmuj

access audit logs are not being shown on ranger ui

2015-11-30 Thread Hafiz Mujadid
hi, I have enabled ranger audits in solr, but access audits are not being shown. properties for hdfs plugin *XAAUDIT.SOLR.ENABLE=true* *XAAUDIT.SOLR.URL=http://192.168.23.105:6083/solr/ranger_audits * *XAAUDIT.SOLR.USER=ranger_solr*

Re: access audit logs are not being shown on ranger ui

2015-11-30 Thread Hafiz Mujadid
he sample. > > Can you check the hadoop lib folders for *http*.jar files? Mine > is httpclient-4.2.5.jar and we package httpmime-4.2.5.jar with HDFS > plugin. > > Thanks > > Bosco > > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: <user@r

Re: Group level permission are not working in ranger

2015-11-30 Thread Hafiz Mujadid
, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > Bosco, > > I have followed above steps > drwxr-xr-x - hduser hadoop 0 2015-11-30 18:49 /pg > changed the umask so newly created folder or files have following > permissions > d---rwxrwx - asma hadoop 0

Re: Group level permission are not working in ranger

2015-11-30 Thread Hafiz Mujadid
Bosco, By the way, i could not understand the reason to perform above steps, can you explain them? thanks On Mon, Nov 30, 2015 at 7:16 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > Bosco, > > I have followed above steps > >1. drwxr-xr-x - hduser hadoop

Re: Group level permission are not working in ranger

2015-11-30 Thread Hafiz Mujadid
do #3 and #4 as above. > > Bosco > > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: <user@ranger.incubator.apache.org> > Date: Sunday, November 29, 2015 at 8:29 PM > To: <user@ranger.incubator.apache.org> > Subject: Re: Group level permission a

Re: hdfs plugin enable issue

2015-11-30 Thread Hafiz Mujadid
Bosco, Here is the jira against this issue RANGER-752 <https://issues.apache.org/jira/browse/RANGER-752> thanks On Mon, Nov 30, 2015 at 6:21 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > Ramesh, > > when i removed the following jars from the hadoop/share/hdfs/l

Re: hdfs plugin enable issue

2015-11-30 Thread Hafiz Mujadid
sh Mani <rm...@hortonworks.com> > wrote: > >> Hafiz, >> >> Please list the files in hadoop/lib directory , also provide the >> complete namenode log for me to review? >> >> Thanks, >> Rame >> >> From: Hafiz Muj

Re: hdfs plugin enable issue

2015-11-29 Thread Hafiz Mujadid
ethir/ranger/ranger-0.5.0-rc3/ranger-0.5.0.tar.gz > > Please try building from that source and confirm if you still see the > problem. > I think you would not see the problem with that source. > > Thanks > Dilli > > > > On Sun, Nov 29, 2015 at 3:18 AM, Hafiz Mujadid &l

Re: hdfs plugin enable issue

2015-11-29 Thread Hafiz Mujadid
Hi, I tried with hadoop 2.7.0 but facing same exception. Anybody please what is the issue ? On Sun, Nov 29, 2015 at 2:52 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > hadoop/lib contains following jar files, I also placed these ranger > related jars in hadoop/share/hdf

Re: Group level permission are not working in ranger

2015-11-29 Thread Hafiz Mujadid
Arvind! I don't want to give write permissions,I just want to give read permissions so user can only view contents of the folder but can't write in this folder. On Mon, Nov 30, 2015 at 9:29 AM, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > Yes Bosco, directory is being created. &

Re: hdfs plugin enable issue

2015-11-29 Thread Hafiz Mujadid
ou send some lines above the > exception you pasted in the original email? > > Thanks > > Bosco > > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: <user@ranger.incubator.apache.org> > Date: Sunday, November 29, 2015 at 6:50 AM > To: <user@rang

Giving no permissions at all

2015-11-29 Thread Hafiz Mujadid
Hi, When we give permission in policies, we have options to read,write and execute permissions. What if i don't want to give any permission not even read to a certain user or group of users? how can i achieve this functionality in ranger? thanks

Re: ranger-admin setup failed

2015-11-28 Thread Hafiz Mujadid
core_file=db/sqlanywhere/xa_core_db_sqlanywhere.sql* > *sqlanywhere_audit_file=db/sqlanywhere/xa_audit_db_sqlanywhere.sql* > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: "user@ranger.incubator.apache.org" < > user@ranger.incubator.apache.org> >

Re: ranger-admin setup failed

2015-11-28 Thread Hafiz Mujadid
do i need to pull latest code? On Sat, Nov 28, 2015 at 9:35 PM, Velmurugan Periasamy < vperias...@hortonworks.com> wrote: > Patch is committed. Could you please try again? > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: "user@ranger.i

hdfs plugin enable issue

2015-11-28 Thread Hafiz Mujadid
Hi! I have enabled hdfs plugin but after that name node is not starting, when i start namenode, i get following exception 2015-11-29 00:44:20,534 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode. java.lang.RuntimeException:

Re: ranger-admin setup failed

2015-11-28 Thread Hafiz Mujadid
Yes, the issue is resolved now, thanks Velmurugan Periasamy On Sat, Nov 28, 2015 at 9:38 PM, Velmurugan Periasamy < vperias...@hortonworks.com> wrote: > Yes. Patch is committed in master branch. > > From: Hafiz Mujadid <hafizmujadi...@gmail.com> > Reply-To: "use

Re: hdfs plugin enable issue

2015-11-28 Thread Hafiz Mujadid
are running? > What is the version of Hadoop you are running? > What is the dstribution version (e.g. HDP 2.3?) > This would be critical for anyone trying to help on this. > Thanks > Dilli > > On Sat, Nov 28, 2015 at 11:51 AM, Hafiz Mujadid <hafizmujadi...@gmail.com> >

Re: issue with rest api

2015-08-11 Thread Hafiz Mujadid
related issue. That said, did you try @Ramesh’s suggestion of using curl below? From: Hafiz Mujadid Reply-To: user@ranger.incubator.apache.org Date: Sunday, August 9, 2015 at 2:32 AM To: user@ranger.incubator.apache.org Subject: Re: issue with rest api Hi Ramesh! I tried following code

rest api create policy giving 404 error

2015-08-09 Thread Hafiz Mujadid
Hi Experts! I tried this command to create a new policy curl -i --header Accept:application/json -H Content-Type:application/json --user admin:admin -X POST http://122.129.79.69:6080/service/public/api/policy -d '{

Re: issue with rest api

2015-08-09 Thread Hafiz Mujadid
+= \dfs.datanode.kerberos.principal\: \\, json += \dfs.namenode.kerberos.principal\: \\, json += \dfs.secondary.namenode.kerberos.principal\: \\, json += \commonNameForCertificate\: \\}\, json += \isActive\: true} json } On Sun, Aug 9, 2015 at 2:28 AM, Hafiz Mujadid

Installing knox and ranger in hadoop multi node cluster

2015-08-08 Thread Hafiz Mujadid
Hi Experts! I want to setup knox and ranger in hadoop multi node clusters. I have seen guideline to setup knox and ranger in single node cluster. So how can we setup in multi node cluster? Thanks

issue with rest api

2015-08-08 Thread Hafiz Mujadid
Hi I am trying to use rest api's in my java/scala code here is my code val httpclient = new DefaultHttpClient() val auth = new AuthScope(host, AuthScope.ANY_PORT) val credentials = new UsernamePasswordCredentials(admin, admin) httpclient.getCredentialsProvider()

Re: issue with rest api

2015-08-08 Thread Hafiz Mujadid
operation on the object and do POST in your java ) Hope this gives you the idea. Thanks, Ramesh From: Hafiz Mujadid hafizmujadi...@gmail.com Reply-To: user@ranger.incubator.apache.org user@ranger.incubator.apache.org Date: Saturday, August 8, 2015 at 1:27 PM To: user

Re: ranger startup exception

2015-08-07 Thread Hafiz Mujadid
I have reopened the jira https://issues.apache.org/jira/browse/RANGER-600. Kindly help me to get rid of these issues On Fri, Aug 7, 2015 at 12:56 PM, Hafiz Mujadid hafizmujadi...@gmail.com wrote: going back to commit https://github.com/apache/incubator-ranger/commit

Re: ranger startup exception

2015-08-07 Thread Hafiz Mujadid
/apache/incubator-ranger/commit/edf2af7aa11ab64c8f4a63936001baa3e9da46e9 and try to build again. If it works, we need to reopen RANGER-600. On Fri, Aug 7, 2015 at 11:23 AM, Hafiz Mujadid hafizmujadi...@gmail.com wrote: Hi this is the output of the above command Binary file /usr/local/ranger

Re: ranger startup exception

2015-08-07 Thread Hafiz Mujadid
are using to build. Thanks Bosco From: Hafiz Mujadid hafizmujadi...@gmail.com Reply-To: user@ranger.incubator.apache.org user@ranger.incubator.apache.org Date: Friday, August 7, 2015 at 1:01 AM To: user@ranger.incubator.apache.org user@ranger.incubator.apache.org Subject: Re: ranger

Re: ranger startup exception

2015-08-06 Thread Hafiz Mujadid
, 2015 at 10:31 AM, Gautam Borad gbo...@gmail.com wrote: Hafiz, Seems a slash is missing before 'semicolon'. Please try the below : *find /usr/local/ranger-0.5.0-admin -name *.jar -exec fgrep -H ServletException {} \;* On Fri, Aug 7, 2015 at 10:14 AM, Hafiz Mujadid hafizmujadi...@gmail.com wrote

Re: ranger startup exception

2015-08-06 Thread Hafiz Mujadid
to be not found - per the error) should be in file /usr/local/ranger-0.5.0-admin/ews/lib/tomcat-embed-core–7.0.55.jar. Can you run the following commands and send its output: find /usr/local/ranger-0.5.0-admin -name *.jar -exec fgrep -H ServletException {} \; Madhan From: Hafiz Mujadid

Re: ranger startup exception

2015-08-06 Thread Hafiz Mujadid
. Just to confirm whether the right java is in your PATH can you send the output of the following command: $ java -version On Thu, Aug 6, 2015 at 11:28 AM, Hafiz Mujadid hafizmujadi...@gmail.com wrote: I am using java version 1.7.0_79 Which version should I use? On Thu, Aug 6, 2015 at 10

Re: ranger startup exception

2015-08-06 Thread Hafiz Mujadid
Hi I am stuck at above error. I could not resolve it. Anybody knows how to figure it out ? Please help Thanks On Thu, Aug 6, 2015 at 11:48 PM, Hafiz Mujadid hafizmujadi...@gmail.com wrote: Hi here are the contents of '/tmp/ranger-admin-services-start.out' after executing command suggested

Re: ranger startup exception

2015-08-06 Thread Hafiz Mujadid
Ranger Admin and whether its run as root or non-root user. 4. Whether JAVA_HOME variable is exported or not. 5. The full content of the catalina.out file These will help us pinpoint the issue better. Thanks. On Thu, Aug 6, 2015 at 12:27 PM, Hafiz Mujadid hafizmujadi...@gmail.com wrote

Re: master branch compilation issue

2015-08-05 Thread Hafiz Mujadid
, if any. Thanks From: Hafiz Mujadid Reply-To: user@ranger.incubator.apache.org Date: Tuesday, August 4, 2015 at 9:45 PM To: user@ranger.incubator.apache.org Subject: Re: master branch compilation issue I am running simply this command mvn clean compile package assembly:assembly

master branch compilation issue

2015-08-04 Thread Hafiz Mujadid
Hi ! I am trying to compile code from master branch but facing following compiling error. [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[40,33] error:

Re: master branch compilation issue

2015-08-04 Thread Hafiz Mujadid
'8192' bytes exceeds size in header of '566424' bytes On Tue, Aug 4, 2015 at 9:12 PM, Don Bosco Durai bo...@apache.org wrote: I don’t see anything obviously wrong. Can you try after deleting the folder ~/.m2/repository Thanks Bosco From: Hafiz Mujadid hafizmujadi...@gmail.com Reply-To: user

Re: master branch compilation issue

2015-08-04 Thread Hafiz Mujadid
of times? If the problems keeps moving, then it is an internet issues. If not, can you create a JIRA and upload your complete build output? Thanks Bosco From: Hafiz Mujadid hafizmujadi...@gmail.com Reply-To: user@ranger.incubator.apache.org user@ranger.incubator.apache.org Date: Tuesday

apache ranger access programmatcally

2015-07-26 Thread Hafiz Mujadid
Hi experts! I want to know is there a way to use apache rangers functionality using some java api or rest api ? Thanks