Simple oozie example of hive query?

后端 未结 1 793
生来不讨喜
生来不讨喜 2021-02-06 02:51

I\'m trying to convert a simple work flow to oozie. I have tried looking through the oozie examples but they are a bit over-whelming. Effectively I want to run a query and outpu

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 03:31

    Your workflow might look something like this...
    workflow.xml

    
        
        
            
               localhost:50001
                hdfs://localhost:50000
                
                    
                        mapred.job.queue.name
                        default
                    
                    
                        oozie.hive.defaults
                        /user/user1/oozie/hive-site.xml
                    
                
                
                INPUT_TABLE=SampleTable
                OUTPUT=/user/user1/output-data/hive
            
            
            
        
        
            Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]
        
        
    
    

    So here hive-site.xml is the site xml present in $HIVE_HOME/conf folder.
    script.q file contains the actual hive query. select * from ${INPUT_TABLE} .


    how and where can we use the OUTPUT param?

    0 讨论(0)
提交回复
热议问题