Compile Error when killing topology from storm bolt programatically: object and package with same name

前端 未结 1 817
没有蜡笔的小新
没有蜡笔的小新 2021-01-22 18:51

I was looking for how to kill a topology from a storm bolt in storm 1.2.1 in my scala project. From this answer, I wrote following code to do it:

  p         


        
相关标签:
1条回答
  • 2021-01-22 19:42

    Based on the answer here, I was able to compile this in sbt using following scalac options:

    "-Yresolve-term-conflict:object"
    

    to get this compiled with maven, I did following changes in my pom.xml as suggested here:

    <configuration>
          <scalaVersion>${scala.version}</scalaVersion>
          <args>
            <arg>-Yresolve-term-conflict:object</arg> //this was added
          </args>
          <jvmArgs>
            <jvmArg>-Xms2048m</jvmArg>
            <jvmArg>-Xmx4096m</jvmArg>
          </jvmArgs>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题