You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Ankita Sinha <an...@freestoneinfotech.com> on 2017/05/09 09:24:32 UTC

Review Request 59086: HDFS test connection is failing due to null pointer exception

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/
-----------------------------------------------------------

Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.


Bugs: RANGER-1562
    https://issues.apache.org/jira/browse/RANGER-1562


Repository: ranger


Description
-------

HDFS test connection is failing due to null pointer exception:

```
2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
```


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
  hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 


Diff: https://reviews.apache.org/r/59086/diff/1/


Testing
-------

1. Checked Test connection and resource lookup for all the plugins on simple cluster
2. Checked Test connection and resource lookup for all the plugins on secure cluster
and it's working fine.


Thanks,

Ankita Sinha


Re: Review Request 59086: HDFS test connection is failing due to null pointer exception

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/#review174293
-----------------------------------------------------------


Ship it!




Ship It!

- Colm O hEigeartaigh


On May 9, 2017, 9:24 a.m., Ankita Sinha wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59086/
> -----------------------------------------------------------
> 
> (Updated May 9, 2017, 9:24 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1562
>     https://issues.apache.org/jira/browse/RANGER-1562
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> HDFS test connection is failing due to null pointer exception:
> 
> ```
> 2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
> 2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
> 2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
> ```
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
>   hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 
> 
> 
> Diff: https://reviews.apache.org/r/59086/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Checked Test connection and resource lookup for all the plugins on simple cluster
> 2. Checked Test connection and resource lookup for all the plugins on secure cluster
> and it's working fine.
> 
> 
> Thanks,
> 
> Ankita Sinha
> 
>


Re: Review Request 59086: HDFS test connection is failing due to null pointer exception

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On 五月 9, 2017, 9:38 a.m., Colm O hEigeartaigh wrote:
> > Is the change to "RangerServiceHdfs" intended? It doesn't appear to be part of the NPE issue.

This should be environmental problems, I did not reproduce it.


- Qiang


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/#review174283
-----------------------------------------------------------


On 五月 9, 2017, 9:24 a.m., Ankita Sinha wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59086/
> -----------------------------------------------------------
> 
> (Updated 五月 9, 2017, 9:24 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1562
>     https://issues.apache.org/jira/browse/RANGER-1562
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> HDFS test connection is failing due to null pointer exception:
> 
> ```
> 2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
> 2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
> 2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
> ```
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
>   hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 
> 
> 
> Diff: https://reviews.apache.org/r/59086/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Checked Test connection and resource lookup for all the plugins on simple cluster
> 2. Checked Test connection and resource lookup for all the plugins on secure cluster
> and it's working fine.
> 
> 
> Thanks,
> 
> Ankita Sinha
> 
>


Re: Review Request 59086: HDFS test connection is failing due to null pointer exception

Posted by Ankita Sinha <an...@freestoneinfotech.com>.

> On May 9, 2017, 9:38 a.m., Colm O hEigeartaigh wrote:
> > Is the change to "RangerServiceHdfs" intended? It doesn't appear to be part of the NPE issue.
> 
> Qiang Zhang wrote:
>     This should be environmental problems, I did not reproduce it.

yes, after the test connection was successful audit to hdfs was not working for kms as the folder was not correct. so that is related to audit to hdfs directory.


- Ankita


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/#review174283
-----------------------------------------------------------


On May 9, 2017, 9:24 a.m., Ankita Sinha wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59086/
> -----------------------------------------------------------
> 
> (Updated May 9, 2017, 9:24 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1562
>     https://issues.apache.org/jira/browse/RANGER-1562
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> HDFS test connection is failing due to null pointer exception:
> 
> ```
> 2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
> 2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
> 2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
> ```
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
>   hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 
> 
> 
> Diff: https://reviews.apache.org/r/59086/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Checked Test connection and resource lookup for all the plugins on simple cluster
> 2. Checked Test connection and resource lookup for all the plugins on secure cluster
> and it's working fine.
> 
> 
> Thanks,
> 
> Ankita Sinha
> 
>


Re: Review Request 59086: HDFS test connection is failing due to null pointer exception

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/#review174283
-----------------------------------------------------------



Is the change to "RangerServiceHdfs" intended? It doesn't appear to be part of the NPE issue.

- Colm O hEigeartaigh


On May 9, 2017, 9:24 a.m., Ankita Sinha wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59086/
> -----------------------------------------------------------
> 
> (Updated May 9, 2017, 9:24 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1562
>     https://issues.apache.org/jira/browse/RANGER-1562
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> HDFS test connection is failing due to null pointer exception:
> 
> ```
> 2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
> 2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
> 2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
> ```
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
>   hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 
> 
> 
> Diff: https://reviews.apache.org/r/59086/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Checked Test connection and resource lookup for all the plugins on simple cluster
> 2. Checked Test connection and resource lookup for all the plugins on secure cluster
> and it's working fine.
> 
> 
> Thanks,
> 
> Ankita Sinha
> 
>


Re: Review Request 59086: HDFS test connection is failing due to null pointer exception

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59086/#review174315
-----------------------------------------------------------


Ship it!




Ship It!

- Velmurugan Periasamy


On May 9, 2017, 9:24 a.m., Ankita Sinha wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59086/
> -----------------------------------------------------------
> 
> (Updated May 9, 2017, 9:24 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1562
>     https://issues.apache.org/jira/browse/RANGER-1562
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> HDFS test connection is failing due to null pointer exception:
> 
> ```
> 2017-05-05 15:36:10,025 [timed-executor-pool-0] INFO  apache.ranger.services.hdfs.client.HdfsClient (HdfsClient.java:204) - ===> HdfsClient.testConnection()
> 2017-05-05 15:36:10,032 [timed-executor-pool-0] ERROR org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:510) - TimedCallable.call: Error:java.lang.NullPointerException
> 2017-05-05 15:36:10,035 [http-bio-6182-exec-4] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:188) - ==> ServiceMgr.validateConfig Error:org.apache.ranger.plugin.client.HadoopException: java.lang.NullPointerException
> ```
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/client/HadoopConfigHolder.java 7a0b48a 
>   hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/RangerServiceHdfs.java 2647bad 
> 
> 
> Diff: https://reviews.apache.org/r/59086/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Checked Test connection and resource lookup for all the plugins on simple cluster
> 2. Checked Test connection and resource lookup for all the plugins on secure cluster
> and it's working fine.
> 
> 
> Thanks,
> 
> Ankita Sinha
> 
>