开发者社区 > 大数据与机器学习 > 大数据计算 MaxCompute > 正文

大数据计算MaxCompute想问一下这里的endpoint tengine_endpoint还是?

大数据计算MaxCompute想问一下这里的endpoint tengine_endpoint还是tunnel endpoint呀?

展开
收起
cuicuicuic 2023-11-05 15:46:08 38 0
3 条回答
写回答
取消 提交回答
  • endpoint就行,此回答整理自钉群“MaxCompute开发者社区2群”

    2023-11-07 23:02:15
    赞同 展开评论 打赏
  • 在MaxCompute中,tengine_endpoint是指Tengine服务的访问地址,而tunnel endpoint在MaxCompute中,tengine_endpoint是指Tengine服务的访问地址,而tunnel endpoint是指通过Tunnel服务建立的连接。

    如果您需要使用Tengine服务来访问MaxCompute,则需要使用tengine_endpoint作为访问地址。例如,您可以将以下代码中的"your_project_name.endpoint"替换为您自己的项目名称和相应的tengine_endpoint:

    from odps import Odps
    
    # 创建ODPS客户端对象
    odps = Odps(access_id='your_access_id', access_key='your_access_key', project='your_project_name', end_point='your_project_name.endpoint')
    
    # 执行查询操作
    query = "SELECT * FROM your_table_name;"
    result = odps.execute(query)
    
    # 处理查询结果
    for row in result:
        print(row)
    

    如果您需要使用Tunnel服务来访问MaxCompute,则需要使用tunnel endpoint作为访问地址。例如,您可以将以下代码中的"your_project_name.tunnel.endpoint"替换为您自己的项目名称和相应的tunnel endpoint:

    from odps import Odps
    
    # 创建ODPS客户端对象
    odps = Odps(access_id='your_access_id', access_key='your_access_key', project='your_project_name', end_point='your_project_name.tunnel.endpoint')
    
    # 执行查询操作
    query = "SELECT * FROM your_table_name;"
    result = odps.execute(query)
    
    # 处理查询结果
    for row in result:
        print(row)
    
    2023-11-06 11:28:19
    赞同 展开评论 打赏
  • 面对过去,不要迷离;面对未来,不必彷徨;活在今天,你只要把自己完全展示给别人看。

    在阿里云的大数据计算服务(MaxCompute)中,“Endpoint”通常指的是“访问点”,用于标识资源的位置,如表、存储桶等。
    而在您的问题中提到的“tengine_endpoint”和“tunnel endpoint”可能是指特定的服务或功能。具体而言:

    • “tengine_endpoint”可能是指阿里云的Tengine产品,这是一种高性能的HTTP反向代理服务器和负载均衡器。
    • “tunnel endpoint”可能是指隧道终结点,它用于在客户端和远程服务器之间建立安全连接,以提供安全的数据传输。
    2023-11-05 16:10:30
    赞同 展开评论 打赏

MaxCompute(原ODPS)是一项面向分析的大数据计算服务,它以Serverless架构提供快速、全托管的在线数据仓库服务,消除传统数据平台在资源扩展性和弹性方面的限制,最小化用户运维投入,使您经济并高效的分析处理海量数据。

相关产品

  • 云原生大数据计算服务 MaxCompute
  • 相关电子书

    更多
    大数据AI一体化的解读 立即下载
    极氪大数据 Serverless 应用实践 立即下载
    大数据&AI实战派 第2期 立即下载