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')

Questions about programming?Chat with your personal AI assistant