Reply
New Contributor
Posts: 1
Registered: ‎04-03-2019

Rename failed: /user/demo/movies.csv -> /user/demo/.scratchdir

[ Edited ]

Hi All, I am getting this error while creating the table from the file. Anyone knows what is the reason. Rename failed: /user/demo/movies.csv -> /user/demo/.scratchdir

Highlighted
Posts: 947
Kudos: 30
Solutions: 18
Registered: ‎05-27-2014

Re: Rename failed: /user/demo/movies.csv -> /user/demo/.scratchdir

Hi @gunjan ,

 

Could you please share the versions of Hue you are using? Are you using upstream version or the vesion comes with CDH?

 

Thanks,

Li

Li Wang, Technical Resolution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Posts: 947
Kudos: 30
Solutions: 18
Registered: ‎05-27-2014

Re: Rename failed: /user/demo/movies.csv -> /user/demo/.scratchdir

Hi @gunjan ,

 

There is a new feature added in Hue latest version which it moves the source file to create table to a .scratchdir to handle moving file easily. However, if the create table fails, then there are files in .scratchdir left behind and future create tables fails. We have opened an internal jira to handle this in a better way.

 

Could you please remove the .scratchdir and try again as a workaround?

 

Thanks,

Li

Li Wang, Technical Resolution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum