Hi Team,
I am stuck at setting up oozie workflow for Twitter project.
Below are the steps i performed as present in project demo document present in module 15:
1. created a folder called oozie-workflows inside "Module_Project_Twitter" project folder(provided by Dezyre)
2. Created a sub folder "lib" inside this folder and placed "hive-serdes-1.0-SNAPSHOT.jar" and "mysql-connector-java.jar" files in it.
3. Also i have placed "add_partition.q" , "coord-app.xml", 'hive-action.xml", "hive-site.xml" and "job.properties" files in oozie-workflows folder
Now, when i run "chown" command, it gives below error:
Command: sudo chown oozie:oozie oozie-workflows/hive-site.xml
Error:
chown: cannot access `oozieworkflows/hive-site.xml': No such file or directory
Also when i run initiate the oozie job using below command, it shows up error :
Command: oozie job -oozie http://localhost:11000/oozie -config oozie-workflows/job.properties -run
Error:
[cloudera@localhost Module_Project_Twitter]$ oozie job -oozie http://localhost:11000/oozie-config oozie-workflows/job.properties -run
java.io.IOException: configuration file not specified
at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:636)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:795)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:512)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:485)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:182)
configuration file not specified
[cloudera@localhost Module_Project_Twitter]$ oozie job -oozie http://localhost:11000/oozie-config oozie-workflows/job.properties -run
java.io.IOException: configuration file not specified
at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:636)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:795)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:512)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:485)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:182)
configuration file not specified
Ans also when i try the other option of using Alter query, it gives the below error:
query: alter table tweets_partioned add partition(year 2014, month=25, dt=24, dtour=05);
Error:
bash: syntax error near unexpected token `('
Please help me on this.
Regards,
Swetha.
Hi Swetha,
Please use the correct command:
$ oozie job -oozie http://localhost:11000/oozie -config oozie-workflows/job.properties -run
Please copy paste the above command.
Hope this helps.
Thanks.