Comments (6)
The arg elements, if present, contains arguments for the main function. The value of each arg element is considered a single argument and they are passed to the main method in the same order.
https://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html#a3.2.7_Java_Action
Do you see the final command string executed by Oozie in the logs?
It might be fine:
--time
"30
seconds"
-->
--time<>"30<>seconds"
from hue.
The problem is not in Oozie. Oozie can manage arguments with spaces, because arguments are wrapped inside the <arg>
tag in XML. The problem is in the Hue interface to Oozie. The desired output would be two arguments - the first one being --time
and the second one 30 seconds
. In Oozie this happens with
<arg>--time</arg>
<arg>30 seconds</arg>
In bash, I can launch the program and quote the arguments, like --time "30 seconds"
.
What I am not able to do is to pass this argument in the Hue user interface
from hue.
I see! I created https://issues.cloudera.org/browse/HUE-2146
Unfortunately I don't see any other workaround than not using a space for now (e.g. --time "30seconds", --time "30-seconds" ...) and updating the Java program to also understand this format.
from hue.
I also experienced this while using tabs for record delimiters in a sqoop action. The arg '\t'
would not work. I worked around the issue by recompiling sqoop with tab as the default delimiter.
from hue.
I found a way to pass a space character as an oozie arg parameter. You have to double escape the octal value for the space character, i.e., "\040". So, let's say you want the arg parameter to be "Problem solved", you would need to enter "Problem\040solved".
The octal value for a space character is 040. For a bash script it would be \040. From oozie it needs to be \040.
from hue.
Funny thing happened. After I wrote the comment above, I realized that it only showed a single back slash. So, I need to escape my comment, too! What I meant to say is this:
I found a way to pass a space character as an oozie arg parameter. You have to double escape the octal value for the space character, i.e., "\040". So, let's say you want the arg parameter to be "Problem solved", you would need to enter "Problem\040solved".
The octal value for a space character is 040. For a bash script it would be \040. From oozie it needs to be \040.
from hue.
Related Issues (20)
- An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block HOT 5
- Unable to start Hue with AttributeError: 'Config' object has no attribute 'get' error HOT 12
- [Enhancement] Add support for Kyuubi JDBC connector HOT 1
- cannot login when enable auth backend as desktop.auth.backend.AllowAllBackend HOT 3
- Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. cannot find field ac_auto_timing
- Transferring data from configmap to secret kubernetes HOT 1
- Issue while generating new parser HOT 2
- How to create a read-only user for ClickHouse
- hostPath is hardcoded for Helm Charts HOT 1
- 1 HOT 1
- How can I remove the help tips HOT 5
- Unable to reach the Web UI "Bad Request" HOT 2
- Hue demo page not working HOT 2
- HiveSyntaxParser is not working when I use Joins HOT 2
- Demo site not working HOT 4
- When I use trino notebook,sql was failed caused by Nginx 504 timeout
- hue xxx.gz file Open in Brower Failed to decompress file. HOT 7
- Add imagePullSecrets for images HOT 1
- permission denied, mkdir '/usr/local/hue/node_modules/node-sass/vendor HOT 3
- Display and accept binary HBase data in escaped form HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hue.