This file upload will work when is it done manually. But it would fail on automation testing with selenium.
Since there is browse/file upload option, there should be a <input type=”file” /> in the DOM tree corresponding to aforementioned ngf-select element. If it is not visible, it means that it is hidden. Find that element and make it visible (through your selenium code) and then run the file upload operation on that element. It will work.
On importing a csv file into a table with same structure that placed on different machine, with mysql import using mysql root user , it is common that we may end up with some access denied error messages.
While building a nodejs application (npm install) I came across some weird issues which are in a nutshell as follows.
v8.h:336:1: error: expected unqualified-id before ‘using’, node-gyp
The nodejs version I was using was v5.10.1 and the reason for this issue was incompatible gcc. and upadating gcc to correct version solved the problems. Following steps are what I did to fix the issue.
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --config gcc (choose gcc-5 from the list)
Check that the correct versions of gcc and g++ are being used by default by running gcc -v; g++ -v
When we execute a sqoop export action via oozie (moving data from hdfs to mysql ) using the tag <command>, we may come across the error java.lang.RuntimeException: Can’t parse input data: ‘NULL’. This sqoop export command, which was executed successfully though terminal, may raise this issue, when it is combined with oozie.
The fix for the above issue is to remove all the single/double quotes from the command. eg : Instead of –input-null-string ‘NULL’, we need to use –input-null-string NULL
Sqoop command: The Sqoop command can be specified either using the command element or multiple arg elements. – When using the command element, Oozie will split the command on every space into multiple arguments.- When using the arg elements, Oozie will pass each argument value as an argument to Sqoop. The arg variant should be used when there are spaces within a single argument. – All the above elements can be parameterized (templatized) using EL expressions.
Also I think the following apache documentation on sqoop is of high relevance for beginners in sqoop domain :
The sqoop action runs a Sqoop job synchronously.- The information to be included in the oozie sqoop action are the job-tracker, the name-node and Sqoop command or arg elements as well as configuration.- A prepare node can be included to do any prep work including hdfs actions. This will be executed prior to execution of the sqoop job.- Sqoop configuration can be specified with a file, using the job-xml element, and inline, using the configuration elements.- Oozie EL expressions can be used in the inline configuration. Property values specified in the configuration element override values specified in the job-xml file.
Note that Hadoop mapred.job.tracker and fs.default.name properties must not be present in the inline configuration. As with Hadoop map-reduce jobs, it is possible to add files and archives in order to make them available to the Sqoop job.
This was a bit scary for me as it was for the first time I was facing something like this. And I even tried adding hostname of ubuntu server and its ip address directly in my /etc/hosts file. and further to my frustration it did not work. But The actual fix that worked for me is as follows: