[jira] [Commented] (ATLAS-46) Different data directory with restart

2015-07-15 Thread Suma Shivaprasad (JIRA)

[ 
https://issues.apache.org/jira/browse/ATLAS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627790#comment-14627790
 ] 

Suma Shivaprasad commented on ATLAS-46:
---

+1

 Different data directory with restart
 -

 Key: ATLAS-46
 URL: https://issues.apache.org/jira/browse/ATLAS-46
 Project: Atlas
  Issue Type: Bug
Reporter: Shwetha G S
Assignee: Shwetha G S
Priority: Critical
 Fix For: trunk

 Attachments: ATLAS-46.patch, application.log


 Atlas start picks up different data directories - initially 
 ./server/webapp/atlas/data and after restart ./data. This must be because of 
 relative path in the configuration
 {noformat}
 apache-atlas-0.6-incubating-SNAPSHOT$ ps -ef | grep -i atlas
   504  6437 1   0 11:51AM ttys0000:07.66 
 /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java 
 -Datlas.log.dir=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/logs
  -Datlas.log.file=application.log 
 -Datlas.home=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT
  
 -Datlas.conf=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf
  -Xmx1024m -classpath 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/classes:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/*:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/libext/*
  org.apache.atlas.Main -app 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas
 apache-atlas-0.6-incubating-SNAPSHOT$ find . -name data
 ./server/webapp/atlas/data
 ./server/webapp/atlas/data/es/data
 ./server/webapp/atlas/lib/jquery/src/data
 apache-atlas-0.6-incubating-SNAPSHOT$ ./bin/atlas_stop.py
 apache-atlas-0.6-incubating-SNAPSHOT$ ps -ef | grep atlas
   504  6457 1   0 11:54AM ttys0000:07.50 
 /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java 
 -Datlas.log.dir=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/logs
  -Datlas.log.file=application.log 
 -Datlas.home=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT
  
 -Datlas.conf=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf
  -Xmx1024m -classpath 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/classes:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/*:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/libext/*
  org.apache.atlas.Main -app 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas
 apache-atlas-0.6-incubating-SNAPSHOT$ find . -name data
 ./data
 ./data/es/data
 ./server/webapp/atlas/data
 ./server/webapp/atlas/data/es/data
 ./server/webapp/atlas/lib/jquery/src/data
 {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Review Request 36359: Create configuration properties for HTTP and HTTPS server ports

2015-07-15 Thread Suma Shivaprasad


 On July 10, 2015, 5:05 p.m., Suma Shivaprasad wrote:
  webapp/src/main/java/org/apache/atlas/Main.java, line 103
  https://reviews.apache.org/r/36359/diff/1/?file=1003745#file1003745line103
 
  Could remove protected to make it package private. Dont get what a 
  protected static method means.
 
 Jonathan Maron wrote:
 I'm not sure about the qualifier either, but making it protected enabled 
 a better testing approach and didn't seem to expose the internals in a 
 detrimental way.
 
 Jonathan Maron wrote:
 Actually, I imagine protected means that the method can be statically 
 invoked from child classes or from within the same package.

Since we need the method only in MainIT, the test which is in same package, we 
can drop the protected and make it 
static int getApplicationPort(CommandLine cmd, IMO. No need to have 
protected.


- Suma


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


On July 9, 2015, 6:06 p.m., Jonathan Maron wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/36359/
 ---
 
 (Updated July 9, 2015, 6:06 p.m.)
 
 
 Review request for atlas, Arpit Gupta and Seetharam Venkatesh.
 
 
 Bugs: ATLAS-36
 https://issues.apache.org/jira/browse/ATLAS-36
 
 
 Repository: atlas
 
 
 Description
 ---
 
 Distinct HTTP and HTTPS persisted port properties will make the configuration 
 clearer and allow for a better experience from management interfaces such as 
 Ambari.
 
 
 Diffs
 -
 
   src/conf/application.properties 6c4c7d2 
   webapp/src/main/java/org/apache/atlas/Main.java 1dd17b4 
   webapp/src/test/java/org/apache/atlas/MainIT.java PRE-CREATION 
 
 Diff: https://reviews.apache.org/r/36359/diff/
 
 
 Testing
 ---
 
 Installed a local server and observed the configuration properties working.
 Added a unit test for port selection logic (MainIT).
 
 
 Thanks,
 
 Jonathan Maron
 




Re: Review Request 36359: Create configuration properties for HTTP and HTTPS server ports

2015-07-15 Thread Shwetha GS


 On July 13, 2015, 10:48 a.m., Shwetha GS wrote:
  For hive hook, there is a config:
  property
nameatlas.rest.address/name
valuehttp://localhost:21000//value
  /property
  
  
  Can we use the same config to check if its ssl or not, get the port and 
  also bind to an address?
 
 Jonathan Maron wrote:
 We might be able to do that, but from a management interface it may not 
 be ideal and would probably run contrary to the way in which users expect to 
 manage the assignment of ports (see yarn and hdfs as examples).  I think it 
 is preferable to have persisted values for each transport type since that is 
 a familiar and well-understood mechanism for configuration in a Hadoop 
 cluster.
 
 Shwetha GS wrote:
 Even hdfs and yarn use the full endpoint configuration to bind the port
  property
 descriptionThe address of the applications manager interface in the 
 RM./description
 nameyarn.resourcemanager.address/name
 value${yarn.resourcemanager.hostname}:8032/value
   /property
   property
 descriptionThe hostname of the RM./description
 nameyarn.resourcemanager.hostname/name
 value0.0.0.0/value
   /property
 
 Jonathan Maron wrote:
 I was talking specifically about the pattern of enabling SSL via a flag 
 (which we do), and defining an associated port, much like HDFS, for example:
 
 property
   namedfs.http.policy/name
   valueHTTPS_ONLY/value
 /property
 
 property
   namedfs.https.port/name
   value50470/value
 /property
 
 Given the time differences and its effect on reviews (this simple change 
 has now been in review for 6 days) I think that:
 
 1)  This is probably not a valid issue to prolong this review
 2)  If users complain we can certainly address a change of the approach 
 with a subsequent JIRA.
 
 I will therefore proceed with a commit.

I guess the reason it has this config is because it hosts server on both http 
and https at the same time. For our case, we enabled either http or https, it 
makes sense to read from url. Will create another bug


- Shwetha


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


On July 9, 2015, 6:06 p.m., Jonathan Maron wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/36359/
 ---
 
 (Updated July 9, 2015, 6:06 p.m.)
 
 
 Review request for atlas, Arpit Gupta and Seetharam Venkatesh.
 
 
 Bugs: ATLAS-36
 https://issues.apache.org/jira/browse/ATLAS-36
 
 
 Repository: atlas
 
 
 Description
 ---
 
 Distinct HTTP and HTTPS persisted port properties will make the configuration 
 clearer and allow for a better experience from management interfaces such as 
 Ambari.
 
 
 Diffs
 -
 
   src/conf/application.properties 6c4c7d2 
   webapp/src/main/java/org/apache/atlas/Main.java 1dd17b4 
   webapp/src/test/java/org/apache/atlas/MainIT.java PRE-CREATION 
 
 Diff: https://reviews.apache.org/r/36359/diff/
 
 
 Testing
 ---
 
 Installed a local server and observed the configuration properties working.
 Added a unit test for port selection logic (MainIT).
 
 
 Thanks,
 
 Jonathan Maron
 




[jira] [Commented] (ATLAS-46) Different data directory with restart

2015-07-15 Thread Jonathan Maron (JIRA)

[ 
https://issues.apache.org/jira/browse/ATLAS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14628428#comment-14628428
 ] 

Jonathan Maron commented on ATLAS-46:
-

Would a full path for the properties in the application.properties file work?  
In that instance perhaps we could provide for tokens and do the substitution 
during initialization, e.g.:

atlas.graph.storage.directory=${atlas.home}/data/berkley

where atlas.home represents one of the defined tokens or alternatively is the 
name of a system property or command line option?  That may provide for more 
flexibility.


 Different data directory with restart
 -

 Key: ATLAS-46
 URL: https://issues.apache.org/jira/browse/ATLAS-46
 Project: Atlas
  Issue Type: Bug
Reporter: Shwetha G S
Assignee: Shwetha G S
Priority: Critical
 Fix For: trunk

 Attachments: ATLAS-46.patch, application.log


 Atlas start picks up different data directories - initially 
 ./server/webapp/atlas/data and after restart ./data. This must be because of 
 relative path in the configuration
 {noformat}
 apache-atlas-0.6-incubating-SNAPSHOT$ ps -ef | grep -i atlas
   504  6437 1   0 11:51AM ttys0000:07.66 
 /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java 
 -Datlas.log.dir=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/logs
  -Datlas.log.file=application.log 
 -Datlas.home=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT
  
 -Datlas.conf=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf
  -Xmx1024m -classpath 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/classes:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/*:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/libext/*
  org.apache.atlas.Main -app 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas
 apache-atlas-0.6-incubating-SNAPSHOT$ find . -name data
 ./server/webapp/atlas/data
 ./server/webapp/atlas/data/es/data
 ./server/webapp/atlas/lib/jquery/src/data
 apache-atlas-0.6-incubating-SNAPSHOT$ ./bin/atlas_stop.py
 apache-atlas-0.6-incubating-SNAPSHOT$ ps -ef | grep atlas
   504  6457 1   0 11:54AM ttys0000:07.50 
 /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java 
 -Datlas.log.dir=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/logs
  -Datlas.log.file=application.log 
 -Datlas.home=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT
  
 -Datlas.conf=/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf
  -Xmx1024m -classpath 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/conf:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/classes:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/*:/Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/libext/*
  org.apache.atlas.Main -app 
 /Users/sshivalingamurthy/git/atlas-clone/target/apache-atlas-0.6-incubating-SNAPSHOT/server/webapp/atlas
 apache-atlas-0.6-incubating-SNAPSHOT$ find . -name data
 ./data
 ./data/es/data
 ./server/webapp/atlas/data
 ./server/webapp/atlas/data/es/data
 ./server/webapp/atlas/lib/jquery/src/data
 {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)