Skip to content

Commit

Permalink
SPARKTA-193 SPARKTA-197 Added zinc profile and issue when a policy is…
Browse files Browse the repository at this point in the history
… stopped in cluster mode
  • Loading branch information
anistal committed Nov 24, 2015
1 parent f1f41be commit 8cff554
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
1 change: 0 additions & 1 deletion dist/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ sparkta {
yarn {
sparkHome = ""
master = yarn-cluster
queue = queueName
numExecutors = 2
executorMemory = 2G
executorCores = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ object SparktaClusterJob {
policy, pluginsClasspathFiles, Map("spark.app.name" -> s"${policy.name}")).get

ssc.start
policyStatusActor ? Update(PolicyStatusModel(policyId, PolicyStatusEnum.Started))
log.info(s"Starting Streaming Context for policy $policyId")
ssc.awaitTermination()
} match {
case Success(_) => {
Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -503,4 +503,21 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>zinc</id>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<recompileMode>incremental</recompileMode>
<useZincServer>true</useZincServer>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ with SparktaSerializer {
case Some(queue) => s"--queue $queue"
case None => ""
}
master + queue

log.info(s"YARN config: $master $queue")

s"$master $queue"
}

private def getStandAloneCommandString: String = {
Expand Down

0 comments on commit 8cff554

Please sign in to comment.