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

前端 未结 1 813
没有蜡笔的小新
没有蜡笔的小新 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:

    
          ${scala.version}
          
            -Yresolve-term-conflict:object //this was added
          
          
            -Xms2048m
            -Xmx4096m
          
    
    

    0 讨论(0)
提交回复
热议问题