Hello, Martin, > Can't you just use a script to run the $distcp command, with the file URL in > the script and the other args as parameters?
Thanks for replying. I was scripting like this but things were getting nasty, so I thought rebuilding Bacula with another plugin separator was easier. This is the current script <https://pastebin.com/EcgzbK1R>. The distcp command is picky about the syntax of the FS:filename. I managed to perform backup, but the restore always fails. It seems to have a problem to read from FIFO. The following simple command causes MapReduce to stall ===================================================================================== echo data | /etc/hadoop/bin/hadoop distcp file:///dev/stdin hdfs://hadoop2:54310/a ===================================================================================== > > __Martin Regards, > >>>>>> On Tue, 15 Aug 2017 16:04:21 -0300 (BRT), Heitor Faria said: >> >> > Hello Kern, >> Hello, Wanderlei, >> >> > Mainly who wants to backup Firebird and needs to inform the parameter >> > "port" is >> > not possible to use plugin bpipe, because bpipe doesn't allow escape >> > chars, and >> > is necessary to work. There is some patch in the Enterprise version for >> > this or >> > plan to fix this in the near future? >> I was able to change bpipe separator editing the source code (and finally >> being >> able to backup a Hadoop HDFS cluster). These were the changes: >> >> sed -i "s/':'/';'/g" ./src/plugins/fd/test-plugin-fd.c >> sed -i "s/':'/';'/g" ./src/plugins/fd/bpipe-fd.c >> sed -i "s/':'/';'/g" ./src/plugins/fd/fd_common.h >> sed -i "s/':'/';'/g" ./src/filed/fd_plugins.c >> >> Hopefully, it is the first step in order to deploy the "colon escape" or >> changing the separator character. >> >> > Even include the option to run bpipe in Windows file daemons? >> This would be great. >> >> > Best regards >> >> > Wanderlei H�ttel >> > http://www.huttel.com.br >> >> > 2017-08-12 0:44 GMT-03:00 Heitor Faria < hei...@bacula.com.br > : >> >> >> Hello, List, >> >> >> Does anyone know how to escape colons from the FileSet - Include Plugin >> >> directive? In the following example, the file:/// colon must be excluded >> >> because it is a Plugin values separator. I tried quotes, backslash and >> >> plics. >> >> >> ============================================================================================================= >> >> echo "bpipe:/var$filename:$distcp $hdfs_address$filename >> >> file:///dev/stdout:dd >> >> of=/mnt/bacula-restore$filename" >> >> ============================================================================================================= >> >> >> Regards, >> >> -- >> >> =========================================================================== >> >> Heitor Medrado de Faria | EB-1 Visa | LPIC-III | ITIL-F | EMC 05-001| >> >> Bacula >> >> Systems Certified Administrator II >> >> • Do you need Bacula training? http://bacula.us/video-classes/ >> >> +55 61 98268-4220 | http://bacula.us >> >> =========================================================================== >> >> >> ------------------------------------------------------------------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Bacula-users mailing list >> >> bacula-us...@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> >> > ------------------------------------------------------------------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Bacula-users mailing list >> > bacula-us...@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/bacula-users >> >> -- >> =========================================================================== >> Heitor Medrado de Faria | CEO Bacula do Brasil | Visto EB-1 | LPIC-III | EMC >> 05-001 | ITIL-F >> • N�o seja tarifado pelo tamanho dos seus backups, conhe�a o Bacula >> Enterprise: >> http://www.bacula.com.br/enterprise/ >> • Ministro treinamento e implementa��o in-company do Bacula Community: >> http://www.bacula.com.br/in-company/ >> +55 61 98268-4220 | www.bacula.com.br >> ============================================================================ >> Indicamos tamb�m as capacita��es complementares: >> • Shell b�sico e Programa��o em Shell com Julio Neves. >> • Zabbix com Adail Host. >> ============================================================================ -- =========================================================================== Heitor Medrado de Faria | CEO Bacula do Brasil | Visto EB-1 | LPIC-III | EMC 05-001 | ITIL-F • Não seja tarifado pelo tamanho dos seus backups, conheça o Bacula Enterprise: http://www.bacula.com.br/enterprise/ • Ministro treinamento e implementação in-company do Bacula Community: http://www.bacula.com.br/in-company/ +55 61 98268-4220 | www.bacula.com.br ============================================================================ Indicamos também as capacitações complementares: • Shell básico e Programação em Shell com Julio Neves. • Zabbix com Adail Host. ============================================================================ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel