Closed Free-Radical closed 1 year ago
Usign databricks dbdemos-lakehouse-c360 follwing error from cell:
rm: cannot remove '/dbfs/dbdemos/product/llm/gardening/raw': No such file or directory
shell script is not in the expected directory (/tmp/gardening) when executing
cp -f Posts.xml /dbfs/dbdemos/product/llm/gardening/raw
I fixed it by adding new cell immediately after with following commands:
%sh pwd mkdir -p /dbfs/dbdemos/product/llm/gardening/raw cp -f /tmp/gardening/Posts.xml /dbfs/dbdemos/product/llm/gardening/raw
%sh
pwd
mkdir -p /dbfs/dbdemos/product/llm/gardening/raw
cp -f /tmp/gardening/Posts.xml /dbfs/dbdemos/product/llm/gardening/raw
Hi, thanks for letting us know, I'm adding this instead, it should ignore the error:
rm -rf /dbfs/dbdemos/product/llm/gardening/raw || true
Will be in the next release ~toay
Usign databricks dbdemos-lakehouse-c360 follwing error from cell:
rm: cannot remove '/dbfs/dbdemos/product/llm/gardening/raw': No such file or directory
shell script is not in the expected directory (/tmp/gardening) when executing
cp -f Posts.xml /dbfs/dbdemos/product/llm/gardening/raw
I fixed it by adding new cell immediately after with following commands:
%sh
pwd
mkdir -p /dbfs/dbdemos/product/llm/gardening/raw
cp -f /tmp/gardening/Posts.xml /dbfs/dbdemos/product/llm/gardening/raw