如何在单个ec2节点上安装apacheatlas?

vybvopom  于 2021-05-29  发布在  Hadoop
关注(0)|答案(2)|浏览(598)

我尝试在单个ec2节点上安装apache atlas,但如果启动失败:

wget http://www-eu.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz

tar xvfz apache-atlas-1.0.0-sources.tar.gz
cd apache-atlas-sources-1.0.0/
export MAVEN_OPTS="-Xms2g -Xmx2g"

mvn clean -DskipTests package -Pdist,embedded-hbase-solr

python atlas_start.py
/tmp/apache-atlas-sources-1.0.0/distro/src/conf/atlas-env.sh: line 59: MANAGE_LOCAL_HBASE=${hbase.embedded}: bad substitution
/tmp/apache-atlas-sources-1.0.0/distro/src/conf/atlas-env.sh: line 62: MANAGE_LOCAL_SOLR=${solr.embedded}: bad substitution
/tmp/apache-atlas-sources-1.0.0/distro/src/conf/atlas-env.sh: line 65: MANAGE_EMBEDDED_CASSANDRA=${cassandra.embedded}: bad substitution
/tmp/apache-atlas-sources-1.0.0/distro/src/conf/atlas-env.sh: line 68: MANAGE_LOCAL_ELASTICSEARCH=${elasticsearch.managed}: bad substitution
Exception: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "atlas_start.py", line 163, in <module>
    returncode = main()
  File "atlas_start.py", line 73, in main
    mc.expandWebApp(atlas_home)
  File "/tmp/apache-atlas-sources-1.0.0/distro/src/bin/atlas_config.py", line 160, in expandWebApp
    jar(atlasWarPath)
  File "/tmp/apache-atlas-sources-1.0.0/distro/src/bin/atlas_config.py", line 213, in jar
    process = runProcess(commandline)
  File "/tmp/apache-atlas-sources-1.0.0/distro/src/bin/atlas_config.py", line 249, in runProcess
    p = subprocess.Popen(commandline, stdout=stdoutFile, stderr=stderrFile, shell=shell)
  File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1025, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

如何在一个awsec2上安装apacheatlas?
谢谢。

ki0zmccv

ki0zmccv1#

我同意你应该检查剧本。然而,这些注解并不十分清楚。你也需要配置它。这意味着定义是否使用预构建的zk安装,但更重要的是,atlas默认使用hbase作为其存储。您还必须具有可用的hdfs,并将配置更改为指向hdfs namenode(通常在端口9000上)。
希望这有帮助。

5tmbdcev

5tmbdcev2#

请检查java\u home是否初始化或具有正确的值。用有效值初始化为我解决了问题。

相关问题