Hitachi Vantara Pentaho Community Wiki
Child pages
  • Helpful Commands for Working with Hadoop Configurations

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt

!Common Images^new-icon.png!Helpful Scripts, Commands, etc. for Working with Hadoop Configurations

...

.

Setting the current shim for all your pentaho applications with 1 command.

This linux shell command finds all plugin.properties files from the current directory and lower and sets active.hadoop.configuration to the provided argument

...

. The argument is the name of the hadoop configuration to use.

Code Block
find . -wholename "*pentaho-big-data-plugin/plugin.properties" -exec sed -i "s/\(active.hadoop.configuration=\)\(.*\)/\1$1/g" {} \;

...

Printing the

...

current shim configured for all your pentaho applications with 1 command.

This linux shell command finds all plugin.properties

...

files from the current directory and lower and prints the value of active.

...

hadoop.configuration

...


Code Block
find . -wholename "*pentaho-big-data-plugin/plugin.properties" -exec ls {} \; -exec grep -o "active\.hadoop\.configuration=[0-9A-Za-z\-]*" {} \; | cut -f2 -d=

...