Hi Vikas, thanks for the reply.
I ran the two commands below on Saturday and the build succeeded. then
under /home/ec2-user/atlas/distro/target/server/webapp/atlas I saw some
files (unfortunately did not capture details).
I moved to the cd atlas/distro/target/bin
directory, tried running quick_start.py and quick_start_v1.py and got
the same error as previously (java.io.FileNotFoundException:
/home/ec2-user/atlas/distro/target/server/webapp/atlas.war)
Then I ran atlas_start.py and despite giving the same error it gave a
'server started' message.
[ec2-user@ip-172-31-34-109 bin]$ python atlas_start.py
java.io.FileNotFoundException:
/home/ec2-user/atlas/distro/target/server/webapp/atlas.war (No such file
or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.tools.jar.Main.run(Main.java:307)
at sun.tools.jar.Main.main(Main.java:1288)
starting atlas on host localhost
starting atlas on port 21000
..................................................................................................................................
..............................
Apache Atlas Server started!!!
Then after trying unsuccessfully to browse to the webserver I looked
again under /home/ec2-user/atlas/distro/target/server/webapp/atlas and
there was an error log file which says
# There is insufficient memory for the Java Runtime Environment to
continue.
# Native memory allocation (mmap) failed to map 10737418240 bytes for
committing reserved memory.
Model vCPU Mem (GiB) SSD Storage (GB) Dedicated EBS
Bandwidth (Mbps)
m4.large 2 8 EBS-only
450
Then having read the docs again I saw that atlas_start.py should come
before quick_start.py so I probably messed up the install. So I started
again today with a fresh EC2 instance, installed java and maven, cloned
the git repo.
Then cd atlas and ran the following 3 commands in succession.
* mvn clean -DskipTests package -Pdist,embedded-hbase-solr
* mvn clean install -DskipTests -DskipCheck=true
-Drat.numUnapprovedLicenses=100
* mvn clean package -DskipTests -DskipCheck=true
-Pdist,berkeley-elasticsearch -Drat.numUnapprovedLicenses=100
Each of them gave this failure:
BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.483 s
[INFO] Finished at: 2018-02-05T13:55:07Z
[INFO] Final Memory: 40M/1963M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-resources-plugin:2.6:resources
(default-resources) on project atlas-buildtools: Cannot create resource
output directory: /usr/maven/atlas/build-tools/target/classes -> [Help
1]
When I browse the directories under atlas (e.g. distro) the structure
looked different from the previous install. Previously there was a
directory called target but now there's pom.xml and src.
Any guidance gratefully received.
Kind regards
Rowena
On 2018-02-03 04:40, [email protected] wrote:
> Hi Rowena,
>
> Can you please to follow these two steps in sequence.
>
> * mvn clean install -DskipTests -DskipCheck=true
> -Drat.numUnapprovedLicenses=100
>
> * mvn clean package -DskipTests -DskipCheck=true
> -Pdist,berkeley-elasticsearch -Drat.numUnapprovedLicenses=100
>
> Regards,
>
> Vikas
>
> FROM: [email protected] [mailto:]
> SENT: 03 February 2018 01:04
> TO: [email protected]
> SUBJECT: /home/ec2-user/atlas/distro/target/server/webapp/atlas.war not found
>
>> Hello team
>>
>> I have created an Atlas build on an Amazon Linux server as follows:
>>
>> - version: "4.9.76-38.79.amzn2.x86_64"
>>
>> * - installed java-1.8.0 using yum
>> * - downloaded and installed maven 3.5.2
>> * - set M2_HOME and M2 path
>> * - installed git using yum
>> * - mvn clean -DskipTests package -Pdist,embedded-hbase-solr
>>
>> run tar on the tar files in /atlas/distro/target
>>
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-bin.tar.gz
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-hbase-hook.tar.gz
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-hive-hook.tar.gz
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-sources.tar.gz
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-sqoop-hook.tar.gz
>> * - tar -xzvf apache-atlas-1.0.0-SNAPSHOT-storm-hook.tar.gz
>>
>> Downloaded, installed and started Solr 5.5.1 in cloud mode.
>>
>> * Tried running solr create -c vertex_index -d SOLR_CONF -shards - command
>> not found.
>>
>> Ran sudo bin/atlas_start.py -setup and got this error:
>>
>> java.io.FileNotFoundException:
>> /home/ec2-user/atlas/distro/target/server/webapp/atlas.war
>>
>> Under /home/ec2-user/atlas/distro/target/server/webapp/ I'm seeing a
>> directory called atlas and under that directory, no files. Where have I gone
>> wrong?
>>
>> Thanks and regards
>>
>> Rowena