Closed GoogleCodeExporter closed 9 years ago
Original comment by roland.bouman
on 2 Dec 2010 at 2:08
For the Kettle API it is easy to replace variables. I was wondering if we
couldn't create an exporter for Kettle Cookbook that retains file structures
and all but simply replaces variables to get an absolute path. Let me know if
you need a solution like that and I'll be happy to help out.
Original comment by mattcast...@gmail.com
on 3 Dec 2010 at 11:55
Hi Matt! thanks for your comment.
I have been thinking about replacing variables inside the cookbook job. But
when looking at trouts command, I was wondering, why isn't the parameter value
already expanded by the shell? I mean, in the first part:
sh ${WORKSPACE}/etl/data-integration/software/4.1/data-integration/kitchen.sh
-file=${WORKSPACE}/etl/data-integration/software/kettle-cookbook/pdi/document-al
l.kjb
its seems to me that it is the shell that expands ${WORKSPACE} to whatever the
value is of the (shell) environment variable WORKSPACE. Presumably that
variable will be set to some value so that the resultant paths actually point
to the on-disk location of the kettle software, and the on-disk location of the
kettle cookbook PDI job.
But for some reason, the occurrence of ${WORKSPACE} in the kettle parameters
does not seem to be replaced automatically by the shell. I am no UNIX shell
script guy, so I don't know why that is not the case. But I hope it may be
fixed at that level so cookbook can always presume the parameters are good to
go.
Original comment by roland.bouman
on 3 Dec 2010 at 3:08
Issue 33 has been merged into this issue.
Original comment by roland.bouman
on 17 Dec 2010 at 8:09
Original comment by roland.bouman
on 17 Dec 2010 at 11:53
A fix for this issue was added in r64
Original comment by roland.bouman
on 18 Dec 2010 at 1:38
Original issue reported on code.google.com by
TomBarbe...@googlemail.com
on 2 Dec 2010 at 1:59