Generation

generate functionThu, 02 Feb 2023

one time copy data product to hdfs

def copy_to_hdfs(src, dest): !hdfs dfs -copyFromLocal $src $dest return copy_to_hdfs('/home/jovyan/work/data/products.csv', '/user/jovyan/products.csv')

Want to kickstart your project?Use the new AI Studio to create your code