cgxCode opened a new issue, #2783:
URL: https://github.com/apache/incubator-streampark/issues/2783

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### Java Version
   
   openjdk version "1.8.0_232"
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.12-2.1.0
   
   ### Flink Version
   
   The CDH version of Flink is 1.14.0-csa1.7.0.0.
   
   ### deploy mode
   
   yarn-application
   
   ### What happened
   
   I want to integrate the CDH version number into StreamPark 2.1.0. However, 
when I submit a job, I receive an error.
   <img width="492" alt="image" 
src="https://github.com/apache/incubator-streampark/assets/39609864/59f7f57f-47a7-4825-92f6-0fd7c861ae80";>
   <img width="1229" alt="image" 
src="https://github.com/apache/incubator-streampark/assets/39609864/a820688b-ff64-4426-92c1-44b30868a592";>
   
   I tried to modify the data in the database to make it compile successfully, 
but when I executed it, it still threw an error.
   <img width="1132" alt="image" 
src="https://github.com/apache/incubator-streampark/assets/39609864/7393a3d9-ab1a-47a2-9780-d99beff7d896";>
   I think we need to retrieve the version number at the bottom layer of the 
interface and convert it to a number, but the Flink version of CDH is quite 
special.
   
   ### Error Exception
   
   ```log
   java.util.concurrent.CompletionException: java.lang.NumberFormatException: 
For input string: "0-csa1"
        at 
java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
        at 
java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
        at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.NumberFormatException: For input string: "0-csa1"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at scala.collection.immutable.StringLike.toInt(StringLike.scala:304)
        at scala.collection.immutable.StringLike.toInt$(StringLike.scala:304)
        at scala.collection.immutable.StringOps.toInt(StringOps.scala:33)
        at 
org.apache.streampark.common.conf.FlinkVersion.$anonfun$checkVersion$1(FlinkVersion.scala:117)
        at 
org.apache.streampark.common.conf.FlinkVersion.$anonfun$checkVersion$1$adapted(FlinkVersion.scala:117)
        at 
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237)
        at 
scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
        at 
scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
        at scala.collection.TraversableLike.map(TraversableLike.scala:237)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:230)
        at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
        at 
org.apache.streampark.common.conf.FlinkVersion.checkVersion(FlinkVersion.scala:117)
        at 
org.apache.streampark.flink.client.FlinkClient$.proxy(FlinkClient.scala:72)
        at 
org.apache.streampark.flink.client.FlinkClient$.submit(FlinkClient.scala:49)
        at 
org.apache.streampark.flink.client.FlinkClient.submit(FlinkClient.scala)
        at 
org.apache.streampark.console.core.service.impl.ApplicationServiceImpl.lambda$start$10(ApplicationServiceImpl.java:1544)
        at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
        ... 3 more
   ```
   
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to