Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 来自AmazonEMR上git的uap解析器_Linux_Git_Scala_Sbt_Amazon Emr - Fatal编程技术网

Linux 来自AmazonEMR上git的uap解析器

Linux 来自AmazonEMR上git的uap解析器,linux,git,scala,sbt,amazon-emr,Linux,Git,Scala,Sbt,Amazon Emr,我是scala的新手,所以我真的不知道该怎么做。 在R中,安装git repo需要做的全部工作是: install_github(...) 我需要在Amazon EMR上安装,这是我迄今为止所做的: // Install Sbt sudo yum -y install sbt //Install git sudo yum -y install git // Clone git repo git clone https://github.com/ua-parser/uap-scala

我是scala的新手,所以我真的不知道该怎么做。 在R中,安装git repo需要做的全部工作是:

install_github(...)
我需要在Amazon EMR上安装,这是我迄今为止所做的:

// Install Sbt    
sudo yum -y install sbt

//Install git
sudo yum -y install git

// Clone git repo
git clone https://github.com/ua-parser/uap-scala.git

//Go to path where scala files are located
cd uap-scala/src/main/scala/ua/parser

sbt
compile
我得到以下错误:

> compile
[info] Compiling 8 Scala sources to /home/hadoop/uap-scala/src/main/scala/ua/parser/target/scala-2.10/classes...
[error] /home/hadoop/uap-scala/src/main/scala/ua/parser/CachingParser.scala:5: object twitter is not a member of package com
[error] import com.twitter.util.LruMap
[error]            ^
[error] /home/hadoop/uap-scala/src/main/scala/ua/parser/CachingParser.scala:8: not found: type LruMap
[error]   lazy val clients = new LruMap[String, Client](size)
[error]                          ^
[error] /home/hadoop/uap-scala/src/main/scala/ua/parser/Parser.scala:5: object yaml is not a member of package org
[error] import org.yaml.snakeyaml.Yaml
[error]            ^
[error] /home/hadoop/uap-scala/src/main/scala/ua/parser/Parser.scala:20: not found: type Yaml
[error]     val yaml = new Yaml(new SafeConstructor)
[error]                    ^
[error] /home/hadoop/uap-scala/src/main/scala/ua/parser/Parser.scala:6: object yaml is not a member of package org
[error] import org.yaml.snakeyaml.constructor.SafeConstructor
[error]            ^
[error] 5 errors found
[error] (compile:compileIncremental) Compilation failed

这看起来像是一个依赖项问题。如何安装这些依赖项?请指导如何解决此问题。有没有一个例子是有人设置的?

如果你告诉我哪里出了问题,而不是给出一个否定的调查,那会更有帮助。你是否尝试过按照自述中作者的构建说明进行操作?试试sbt软件包。我试过了,是的。sbt软件包给出了相同的错误。因此,显而易见的解决方案是安装依赖项,但依赖项也是git repos。如果您告诉我出了什么问题,而不是给出否定的调查,这将更有帮助。您是否尝试过按照自述文件中作者的构建说明进行操作?试试sbt软件包。我试过了,是的。sbt包给出了同样的错误,所以显而易见的解决方案是安装依赖项,但依赖项也是git repos。