当前位置: 首页 > news >正文

清明节ppt模板免费下载上海抖音seo

清明节ppt模板免费下载,上海抖音seo,wordpress 页面很窄,国外做蛋糕网站大家好#xff0c;本文将围绕python作业提交什么文件展开说明#xff0c;python123怎么提交作业是一个很多人都想弄明白的事情#xff0c;想搞清楚python期末作业程序需要先了解以下几个事情。 火车头采集ai伪原创插件截图#xff1a; I have a python project, whose fold…大家好本文将围绕python作业提交什么文件展开说明python123怎么提交作业是一个很多人都想弄明白的事情想搞清楚python期末作业程序需要先了解以下几个事情。 火车头采集ai伪原创插件截图 I have a python project, whose folder has the structure main_directory - lib - lib.py - run - .py .py is from lib.lib import add_two spark SparkSession \ .builder \ .master(yarn) \ .appName() \ .getOrCreate() print(add_two(1,2)) and lib.py is def add_two(x,y): return xy I want to launch as a Dataproc job in GCP. I have checked online, but I have not understood well how to do it. I am trying to launch the with gcloud dataproc jobs submit pyspark --cluster$CLUSTER_NAME --region$REGION \ run/.py But I receive the following error message: from lib.lib import add_two ModuleNotFoundError: No module named lib.lib Could you help me on how I should do to launch the job on Dataproc? The only way I have found to do it is to remove the absolute path, making this change to .py: from lib import add_two and the launch the job as gcloud dataproc jobs submit pyspark --cluster$CLUSTER_NAME --region$REGION \ --files /lib/lib.py \ /run/.py However, I would like to avoid the tedious process to list the files manually every time. Following the suggestion of Igor, to pack in a zip file I have found that zip -j --update -r libpack.zip /projectfolder/* spark-submit --py-files libpack.zip /projectfolder/run/.py works. However, this puts all files in the same root folder in libpack.zip, so if there were files with the same names in subfolders this would not work. Any suggestions? 解决方案 To zip the dependencies - cd base-path-to-python-modules zip -qr deps.zip ./* -x .py Copy deps.zip to hdfs/gs. Use uri when submitting the job as shown below. Submit a python project (pyspark) using Dataproc Python connector from google.cloud import dataproc_v1 from google.cloud.dataproc_v1.gapic.transports import ( job_controller_grpc_transport) region cluster_name project_id job_transport ( job_controller_grpc_transport.JobControllerGrpcTransport( address{}-dataproc.googleapis.com:443.format(region))) dataproc_job_client dataproc_v1.JobControllerClient(job_transport) job_file # command line for the main job file args [args1, arg2] # required only if main python job file has imports from other modules # can be one of .py, .zip, or .egg. addtional_python_files [hdfs://path/to/deps.zip, gs://path/to/moredeps.zip] job_details { placement: { cluster_name: cluster_name }, pyspark_job: { main_python_file_uri: job_file, args: args, python_file_uris: addtional_python_files } } res dataproc_job_client.submit_job(project_idproject_id, regionregion, jobjob_details) job_id res.reference.job_id print(fSubmitted dataproc job id: {job_id})
http://www.hkea.cn/news/14385580/

相关文章:

  • 基本原理网站建设网站开发流程荆州
  • 建设网站的法律可行性网站网络推广方法
  • 郑州市制作网站的公司南通专业企业门户网站设计
  • qq空间关闭申请网站十大平面设计培训
  • 网站正能量晚上不用下载直接进入小程序登录失败
  • 太仓建设网站电商网站建设实验心得
  • 网站推广通常是从网站建设及运营网页设计包含的内容
  • 做有趣的网站青海专业网站建设推广平台建设
  • 深圳企业网站制作服务石家庄seo管理
  • 自己做的网站可以查看谁访问吗广西建设监理协会官网站
  • 合肥设计网站seo与网站建设
  • p2p理财网站开发框架金华企业网站建站模板
  • 建设校园门户网站信息意义做自媒体可利用的国外网站
  • 网站出现乱码怎么办简单的招聘网站怎么做
  • 做网站头文件宁波建设银行网站首页
  • 二手书网站开发设计宁波最新消息今天
  • 网站建设捌金手指专业8手机wap支付
  • 做外贸网站案例介绍国外的网站有什么不同
  • 各行业网站建设方案书精准ip地址查询工具
  • 做数码测评的网站搭建网站宣传
  • 朝阳网站邮箱官方网站注册
  • 黄岐建网站完全删除wordpress
  • 彩票网站维护需要几天wordpress企业模板下载
  • 学了dw 就可以做网站了吗大良营销网站建设效果
  • 北京发生大事了seo外链发布平台
  • 播视频网站开发wordpress使用QQ头像
  • 米东区成业建设集团公司网站wordpress下载失败
  • 安装网站wordpress 4.0 中文
  • 做学校网站用什么模版深圳网站建设服务哪个便宜点
  • 自助网站设计平台实战直播