[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-09 Thread Yujie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904065#comment-15904065
 ] 

Yujie Li commented on RANGER-1442:
--

this patch enables Ranger to read the value from ranger-admin-site.xml for ssl 
port.

> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-09 Thread Jeffrey E Rodriguez (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904132#comment-15904132
 ] 

Jeffrey E  Rodriguez commented on RANGER-1442:
--

Hi Yu Jie,
 I wonder if instead of treating DEFAULT_SHUTDOWN_PORT as a variable which 
may be incorrect from code style point of view. If we want to set the 
shutdownPort to SSL port you could change (in the 2 places where 
DEFAULT_SHUTDOWN is defined) as : 
int shutdownPort = getIntConfig("ranger.service.shutdown.port", 
""ranger.service.https.port"" )
If we do that when we may want to also get rid of DEFAULT_SHUTDOWN_PORT.





> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-09 Thread Pradeep Agrawal (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904408#comment-15904408
 ] 

Pradeep Agrawal commented on RANGER-1442:
-

Hi [~yujie.li] ,

Please do not mix the shutdown port with the start port. From the patch it 
seems you are proposing to assign value of property 'ranger.service.https.port' 
to shutdown port. I agree that shutdown property 'ranger.service.shutdown.port' 
is not there in ranger-admin-site.xml but its there in 
ranger-admin-default-site.xml. In Ranger 0.6 version of EmbeddedServer.java 
'ranger-admin-default-site.xml' in not being read and that's why it seems an 
issue.

To solve this issue you can add below property in your ranger-admin-site.xml 
and restart Ranger. Apart from this property other properties of 
ranger-admin-default-site.xml can be overridden in ranger-admin-site.xml file. 
If a property is available at both file then value from ranger-admin-site.xml 
shall be used.

ranger.service.shutdown.port
6185


Please note that EmbeddedServer.java code of Ranger 0.7 branch has the 
provision to read value from both config file (ranger-admin-default-site.xml 
and ranger-admin-site.xml)


> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-09 Thread Yujie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904427#comment-15904427
 ] 

Yujie Li commented on RANGER-1442:
--

Hi [~pradeep.agrawal],

Even adding the ranger.service.shutdown.port property to ranger-admin-site.xml 
doesn't solve the issue. Ranger only sets the SSL port according to the 
shutdown.port value instead of https.port property. Why is Ranger setting https 
port based on the shutdown port value? Isn't it supposed to use https.port 
property?

> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
>Assignee: Pradeep Agrawal
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-10 Thread Pradeep Agrawal (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904838#comment-15904838
 ] 

Pradeep Agrawal commented on RANGER-1442:
-

[~yujie.li] Can you attach your ranger-admin-site.xml and 
ranger-admin-default-site.xml ; i want to see what configuration you are 
providing and on which port service is running. Also attach the screen shot of 
Ranger UI to know on which port ranger is running. 

> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
>Assignee: Pradeep Agrawal
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (RANGER-1442) https port not configurable

2017-03-14 Thread Yujie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/RANGER-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15925043#comment-15925043
 ] 

Yujie Li commented on RANGER-1442:
--

[~pradeep.agrawal]

hello, sorry I made a mistake and took the shutdown port as ssl port. I tested 
and ssl port is configurable. Please help delete this JIRA.

> https port not configurable
> ---
>
> Key: RANGER-1442
> URL: https://issues.apache.org/jira/browse/RANGER-1442
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.2
>Reporter: Yujie Li
>Assignee: Pradeep Agrawal
> Fix For: 0.6.2
>
> Attachments: 0001-RANGER-1442-https-port-not-configurable.patch
>
>
> Ranger doesn't take the https port value (default 6182) from 
> ranger-admin-site.xml and uses hardcoded value (6185) after enabling SSL



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)