Created on 04-03-2019 03:23 AM - edited 09-16-2022 07:17 AM
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
Created 04-23-2019 01:44 PM
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 Solution Manager
Created 04-30-2019 09:41 AM
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 Solution Manager
Created 07-09-2019 12:41 AM
Is there a resolution to this?
I'm having the same issue with CDH 6.2 when trying to create an index from file in Hue.
I've placed a .csv file on my user area - going through the wizard, on the Hue 'Importer' I hit submit - it actually successfully creates the table but I get the 'Rename failed: .... .scratchdir' error, and the page doesn't progress.
I have tried deleting the .scratchdir and, separately, giving fully open permissions to the .scratchdir, I'm not having success with either.
Created 09-23-2019 07:16 AM
I'm having the same issue with CDH 6.3.
Created 09-23-2019 07:27 AM
FYI I was directed to this:
as a workaround.
Created 09-23-2019 02:22 PM
Hi @bradybian ,
FYI, there is an external Hue jira ticket related to this topic which you can follow:
https://issues.cloudera.org/browse/HUE-8910
Have you tried either remove .scratchdir as a workaround or as suggested in earlier post referring to the knowledge article "Loading Data from Files into Tables | HiveServer2 and Sentry"?
Thanks,
Li
Li Wang, Technical Solution Manager
Created 05-19-2020 06:04 AM
Running CDH 6.3.x. The workarounds with removed .scratchdir or referred in https://issues.cloudera.org/browse/HUE-8910 (added random UUID to directory name i.e. .scratchdir.<UUID>) do not solve the problem. Unfortunately do not have access to the knowledge base.
Hence how to solve the problem?