We help IT Professionals succeed at work.
Get Started

Move data from one location to another location in hive external table

ssnoor
ssnoor asked
on
209 Views
Last Modified: 2019-04-23
My hive external table location is set to tmp location .  We need to change the location of data file of hive external table . How can I do it ? Please let me know .

hdfs dfs -ls -R /base/data/hive/landing/dw_transaction/ |grep "^d"

drwxr-xr-x   - grp_scoring_prod grp_scoring          0 2018-11-09 11:00 /base/data/hive/landing/dw_transaction/>
drwxr-xr-x   - grp_scoring_prod grp_scoring          0 2019-04-23 04:28 /base/data/hive/landing/dw_transaction/>/tmp
drwxr-xr-x   - grp_scoring_prod grp_scoring          0 2019-03-23 19:22 /base/data/hive/landing/dw_transaction/>/tmp/hive_hive_2019-03-23_16-04-31_798_8057101057507479986-1
drwxr-xr-x   - grp_scoring_prod grp_scoring          0 2019-03-24 10:59 /base/data/hive/landing/dw_transaction/>/tmp/hive_hive_2019-03-23_16-04-31_798_8057101057507479986-1/-ext-10001
drwxr-xr-x   - grp_scoring_prod grp_scoring          0 2019-03-24 09:40 /base/data/hive/landing/dw_transaction/>/tmp/hive_hive_2019-03-23_16-04-31_798_8057101057507479986-1/_task_tmp.-ext-10000
Comment
Watch Question
Fractional CTO
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE