在开放班次中,我想更改我的yaml文件以启用此功能...
-Djavax.net.debug=ssl:handshake:verbose
我的env部分目前看起来像......
env:
- name: JAVA_OPTIONS
valueFrom:
secretKeyRef:
name: mule-java-options
key: JAVA_OPTIONS
- name: MULE_KEY
valueFrom:
secretKeyRef:
name: encryption-key
key: ENCRYPT_KEY
- name: JAVA_MAX_MEM_RATIO
value: '35'
- name: JAVA_DIAGNOSTICS
value: 'on'
答案 0 :(得分:2)
取决于您是否使用Red Hat XPaaS映像;您可以使用JAVA_OPTS_APPEND
环境变量:
JAVA_OPTS_APPEND的内容在启动时附加到JAVA_OPTS。
示例:-Dfoo = bar
答案 1 :(得分:0)
对于多个变量就像;
import pyspark.sql.functions as F
keywords = spark.createDataFrame([[k,v] for (k,v) in myDict.items()]).toDF('key', 'new_reason')
result = df.join(
keywords,
F.expr("lower(reason) rlike '\\\\b' || lower(key) || '\\\\b'"),
'left'
).drop('key')
result.show(truncate=False)
+---+-------------------------+-------------------+
|id |reason |new_reason |
+---+-------------------------+-------------------+
|1 |Needed better Support |Support Issue |
|2 |Better value from android|Left for Competitor|
|3 |Price was to expensive |Pricing Issue |
|4 |Support problems |Support Issue |
+---+-------------------------+-------------------+