简体   繁体   中英

AWS Datapipeline incorrect java version

I am trying to execute a jar file in my datapipeline and it is erroring out in a fashion that indicates to me that the version of java that is installed in my pipeline is lower than that required by the executable jar. I have tried to add a command to update the java version as the first command in my shell command activity but the activity errors out with the message 'S3 Path must begin with prefix s3://'. So, how can I go about upgrading my java version to 1.8 in my pipeline?

Update

I created a bandaid solution as well as a more long term solution for this problem. The bandaid was to have a shell script that would install openjdk 1.8 and remove openjdk 1.7 then run the java program. The long term solution is to create a custom AMI that has those two steps in the init script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM