You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by pengjianhua <pe...@zte.com.cn> on 2017/09/06 07:04:35 UTC

Review Request 62111: hivedev Test Connection failed

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

Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, Velmurugan Periasamy, and Qiang Zhang.


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


Repository: ranger


Description
-------

At ranger hive web ,when I first click β€œ+” button to create a service( named hivedev) before click "add" button?then click "Test Connection", I got a error dialog,the infomation is follow:
Connection Failed.
Unable to retrieve any files using given parameters, You can still save the repository and start creating policies, but you would not be able to use autocomplete for resource names. Check ranger_admin.log for more info.

org.apache.ranger.plugin.client.HadoopException: Unable to execute SQL [show databases like "*"].. 
Unable to execute SQL [show databases like "*"].. 
null. 
But when I finish create a service(hive_dev) and click hive_dev, then click "Test Connection" ,it show successful.
I think the button should disabled or hidden when first create, should enable when edit.


Diffs
-----

  security-admin/src/main/webapp/scripts/views/service/ServiceForm.js 079ce00a 


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


Testing
-------


Thanks,

pengjianhua


Re: Review Request 62111: Created a service and input right value in "create service" screen of hive. A error message was returned when clicked "Test connectionl" button.

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



I disagree with the fix for this issue. I can successfully test the connection to a Hive server with the latest code. What is the underlying cause of the exception?

- Colm O hEigeartaigh


On Sept. 6, 2017, 7:24 a.m., pengjianhua wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62111/
> -----------------------------------------------------------
> 
> (Updated Sept. 6, 2017, 7:24 a.m.)
> 
> 
> Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, Velmurugan Periasamy, and Qiang Zhang.
> 
> 
> Bugs: RANGER-1764
>     https://issues.apache.org/jira/browse/RANGER-1764
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Created a service and input right value in "create service" screen of hive. A error message was returned when clicked "Test connectionl" button. Steps to reproduce the error are as following:
> 1. Create hive service in "create service" screen of hive;
> 2. Input right value for the service;
> 3. Click "Test Connection" button. Please don't click "Add" button before clicking "Test Connection" button.
> 
> The error information is as following: 
> Connection Failed.
> Unable to retrieve any files using given parameters, You can still save the repository and start creating policies, but you would not be able to use autocomplete for resource names. Check ranger_admin.log for more info.
> org.apache.ranger.plugin.client.HadoopException: Unable to execute SQL [show databases like "*"].. 
> Unable to execute SQL [show databases like "*"].. 
> null. 
> 
> Save above the new service, then edit it. A success message was returned when user does not change any value and click "Test Connection" button.  So the "Test Connection" button should be disabled when user creates a new hive service. And the "Test Connection" button should be enabled when user edits a hive service.
> 
> 
> Diffs
> -----
> 
>   security-admin/src/main/webapp/scripts/views/service/ServiceForm.js 079ce00a 
> 
> 
> Diff: https://reviews.apache.org/r/62111/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> pengjianhua
> 
>


Re: Review Request 62111: Created a service and input right value in "create service" screen of hive. A error message was returned when clicked "Test connectionl" button.

Posted by pengjianhua <pe...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62111/
-----------------------------------------------------------

(Updated 九月 6, 2017, 7:24 a.m.)


Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, Velmurugan Periasamy, and Qiang Zhang.


Summary (updated)
-----------------

Created a service and input right value in "create service" screen of hive. A error message was returned when clicked "Test connectionl" button.


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


Repository: ranger


Description (updated)
-------

Created a service and input right value in "create service" screen of hive. A error message was returned when clicked "Test connectionl" button. Steps to reproduce the error are as following:
1. Create hive service in "create service" screen of hive;
2. Input right value for the service;
3. Click "Test Connection" button. Please don't click "Add" button before clicking "Test Connection" button.

The error information is as following: 
Connection Failed.
Unable to retrieve any files using given parameters, You can still save the repository and start creating policies, but you would not be able to use autocomplete for resource names. Check ranger_admin.log for more info.
org.apache.ranger.plugin.client.HadoopException: Unable to execute SQL [show databases like "*"].. 
Unable to execute SQL [show databases like "*"].. 
null. 

Save above the new service, then edit it. A success message was returned when user does not change any value and click "Test Connection" button.  So the "Test Connection" button should be disabled when user creates a new hive service. And the "Test Connection" button should be enabled when user edits a hive service.


Diffs
-----

  security-admin/src/main/webapp/scripts/views/service/ServiceForm.js 079ce00a 


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


Testing
-------


Thanks,

pengjianhua