清洁猪工作区中的Hello World

编程入门 行业动态 更新时间:2024-10-28 17:24:42
本文介绍了清洁猪工作区中的Hello World的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道是否有可能做经典的"Hello world!"在Apache Pig中.

I wonder wheter it is possible to do the classic 'Hello world!' in Apache Pig.

Pig与SQL和蜂巢在某种程度上可以简单地实现:

Pig is somewhat related to SQL and hive where one could simply do:

SELECT 'Hello Wold';

但是,我一直找不到在Pig中从无到有创建某些东西"的方法.

However, I have been unable to find a way to 'create something from nothing' in Pig.

请注意,如果您能够加载1行或更多数据,则当然可以执行以下操作:

Note that if you are able to load in 1 line of data or more, you could of course do the following:

  • 加载
  • 限制1
  • 生成Hello World
  • 但是,这不是我想要的.我希望找到一种在没有任何可用数据的情况下创建hello world示例的方法.

    However, this is not what I am looking for. I hope to find a way to create a hello world example without having any kind of data available.

    万一您想知道:我主要是出于好奇而问这个问题,但通过仅在代码中执行某些操作(而无需接触文件系统)来加快代码的测试也很方便.

    In case you wonder: I am mostly asking this out of curiosity, but it could also be convenient to speed up the testing of code by just doing something in code (without having to touch the file system).

    推荐答案

    这些年来,我现在非常有信心,不可能用Apache Pig从无到有创建某些东西.

    After all these years, I am now fairly confident that it is NOT possible to create something from nothing with Apache Pig.

    更多推荐

    清洁猪工作区中的Hello World

    本文发布于:2023-10-31 01:23:22,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1544577.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:区中   清洁   工作   World

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!