YesOrNo828 commented on PR #23292:
URL: https://github.com/apache/flink/pull/23292#issuecomment-1697472952

   Yarn 
[nodemanager](https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/ContainerLaunch.java#L1328)
 exports the environment variables that are inconsistent with the submitted 
string, the double-quotes are removed after exporting environment variables, so 
`YarnLocalResourceDescriptor` couldn't parse the string which fetched from 
System.getenv().
   
   e.g.:
   ```
   $ export 
_FLINK_DIST_="{"resourceKey":"flink-dist-1.19-SNAPSHOT.jar","path":"hdfs://flink-dist-1.19-SNAPSHOT.jar","size":126733882,"modificationTime":1693301926167,"visibility":"APPLICATION","resourceType":"FILE"}"
   $ echo $_FLINK_DIST_
   
{resourceKey:flink-dist-1.19-SNAPSHOT.jar,path:hdfs://flink-dist-1.19-SNAPSHOT.jar,size:126733882,modificationTime:1693301926167,visibility:APPLICATION,resourceType:FILE}
   ```
   
   I found out Jackson allow to [configure custom quote 
character](https://github.com/FasterXML/jackson-core/issues/549) to serialize 
Object, for example: single-quote, later I'll figure out the exactly way to 
serialize the string.


-- 
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