You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "CarlosJuncher03 (via GitHub)" <gi...@apache.org> on 2026/04/07 14:38:51 UTC
[I] [Feature Request]: Pull operating system environment variable (hop)
CarlosJuncher03 opened a new issue, #6967:
URL: https://github.com/apache/hop/issues/6967
### What would you like to happen?
The ability to retrieve operating system variables that we define for the user or for the entire system within Apache Hop. An example of this is the dynamic creation of a file connection; I can define a variable in the system that dynamically returns the date, thus creating the connection dynamically.
jdbc:h2:${java.io.tmpdir}/${HOP_PROJECT_NAME}_${system_variable};AUTO_SERVER=TRUE
### Issue Priority
Priority: 3
### Issue Component
Component: Hop Gui
--
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: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #6967:
URL: https://github.com/apache/hop/issues/6967#issuecomment-4199895464
ADD them to the HOP_OPTIONS variable using -Dvariable.name and they are available in the application
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #6967: [Feature Request]: Pull operating system environment variable
URL: https://github.com/apache/hop/issues/6967
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #6967:
URL: https://github.com/apache/hop/issues/6967#issuecomment-4201766014
You were talking about system variables, https://hop.apache.org//manual/latest/installation-configuration.html#_set_system_environment_variables you can add a system variable called HOP_OPTIONS and add all those fixed variables that you want to send to all hop commands
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "CarlosJuncher03 (via GitHub)" <gi...@apache.org>.
CarlosJuncher03 commented on issue #6967:
URL: https://github.com/apache/hop/issues/6967#issuecomment-4214162479
So, I used the variable resolver to create a dynamic variable in the connection, but it seems to have entered a loop, and I don't understand why; I'm still analyzing it. But the HOP_OPTIONS option is a good alternative, I'll test it.
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "CarlosJuncher03 (via GitHub)" <gi...@apache.org>.
CarlosJuncher03 commented on issue #6967:
URL: https://github.com/apache/hop/issues/6967#issuecomment-4200143702
In the case of hop_gui.sh, put it like this
if [ -n "${MY_DATE}" ]; then
HOP_OPTIONS="${HOP_OPTIONS} -DMY_DATE=${MY_DATE}"
fi
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Pull operating system environment variable (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #6967:
URL: https://github.com/apache/hop/issues/6967#issuecomment-4213080428
An alternative solution would be to use a pipeline variable resolver, and in the pipeline, you use a User-Defined Java Expression.
The would be something like `System.getProperty(VARIABLENAME)` This will then return that system variable.
--
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: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org