Project

General

Profile

« Previous | Next » 

Revision 35212

Added by Marek Horst over 9 years ago

introducing ${iis.hadoop.frontend.port.ssh} property support, set to 22 by default, allowing overriding this value in order to support ssh and scp operations for non standard SSH target machine port

View differences:

modules/icm-iis-parent-container/trunk/pom.xml
30 30
        <iis.hadoop.frontend.home.dir>/mnt/tmp</iis.hadoop.frontend.home.dir>
31 31
        <iis.hadoop.master.host.name>localhost</iis.hadoop.master.host.name>
32 32
        <iis.hadoop.frontend.host.name>localhost</iis.hadoop.frontend.host.name>
33
        <iis.hadoop.frontend.port.ssh>22</iis.hadoop.frontend.port.ssh>
33 34
        <oozieServiceLoc>http://${iis.hadoop.master.host.name}:11000/oozie</oozieServiceLoc>
34 35
        <oozieAppDir>oozie_app</oozieAppDir>
35 36
        <nameNode>hdfs://${iis.hadoop.master.host.name}:8020</nameNode>
......
383 384
				          	<executable>ssh</executable>
384 385
						    <arguments>
385 386
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
387
								<argument>-p ${iis.hadoop.frontend.port.ssh}</argument>
386 388
								<argument>rm -rf ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; mkdir -p ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/</argument>
387 389
						    </arguments>
388 390
				          </configuration>
......
396 398
				          <configuration>
397 399
				          	<executable>scp</executable>
398 400
						    <arguments>
401
						    	<argument>-P ${iis.hadoop.frontend.port.ssh}</argument>
399 402
								<argument>target/${oozie.package.file.name}.tar.gz</argument>
400 403
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}:${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/${oozie.package.file.name}.tar.gz</argument>
401 404
						    </arguments>
......
412 415
						    <executable>ssh</executable>
413 416
						    <arguments>
414 417
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
418
								<argument>-p ${iis.hadoop.frontend.port.ssh}</argument>
415 419
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
416 420
								<argument>tar -zxvf oozie-package.tar.gz; </argument>
417 421
								<argument>rm ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/oozie-package.tar.gz; </argument>
......
446 450
						    <outputFile>${oozie.execution.log.file.location}</outputFile>
447 451
						    <arguments>
448 452
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
453
								<argument>-p ${iis.hadoop.frontend.port.ssh}</argument>
449 454
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
450 455
								<argument>./run_workflow.sh</argument>
451 456
						    </arguments>

Also available in: Unified diff