Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7656957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:54:08+00:00 2026-05-31T12:54:08+00:00

I would like to do register s3n://uw-cse344-code/myudfs.jar — load the test file into Pig

  • 0

I would like to do

register s3n://uw-cse344-code/myudfs.jar
-- load the test file into Pig
--raw = LOAD 's3n://uw-cse344-test/cse344-test-file' USING TextLoader as (line:chararray);
-- later you will load to other files, example:
raw = LOAD 's3n://uw-cse344/btc-2010-chunk-000' USING TextLoader as (line:chararray); 

-- parse each line into ntriples
ntriples = foreach raw generate FLATTEN(myudfs.RDFSplit3(line)) as (subject:chararray,predicate:chararray,object:chararray);

--filter 1
subjects1 = filter ntriples by subject matches '.*rdfabout\\.com.*' PARALLEL 50;
--filter 2
subjects2 = subjects1;

but I get the error:

2012-03-10 01:19:18,039 [main] ERROR org.apache.pig.tools.grunt.Grunt – ERROR 1200: mismatched input ‘;’ expecting LEFT_PAREN
Details at logfile: /home/hadoop/pig_1331342327467.log

so it seems pig doesn’t like that. How do I accomplish this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:54:10+00:00Added an answer on May 31, 2026 at 12:54 pm

    i don’t think that kind of ‘typical’ assignment works in pig. It’s not really a programming language in the strict sense – it’s a high-level language on top of hadoop with some specialized functions.

    i think you’ll need to simply re-project the data from subjects1 to subjects2, such as:

    subjects2 = foreach subjects1 generate $0, $1, $2;
    

    another approach might be to use the LIMIT function with some absurdly high parameter.

    subjects2 = subjects2 LIMIT 100000000 ;

    there could be a lot of reasons why that doesn’t make sense, but it’s a thought.

    i sense you are considering doing things as you would in a programming language

    • i have found that rarely works out like you want it to but you can always get the job done once you think like Pig.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to execute some code on installation in order to register with
I would like to register a BroadcastReceiver in the Android manifest, or in code
I have php scripts that do things like register, login, upload. I would like
Problem Language: C# 2.0 or later I would like to register context handlers to
I have a class that implements multiple interfaces. I would like to register these
I would like to convert this fluent approach to xml: container.Register( AllTypes.FromAssemblyNamed(Company.DataAccess) .BasedOn(typeof(IReadDao<>)).WithService.FromInterface(), AllTypes.FromAssemblyNamed(Framework.DataAccess.NHibernateProvider)
I've a website where users can register. I would like to prevent all special
I'm writing a linux driver and I would like to register a callback function
Using MVVM's SimpleIoc, I would like to register an implementation for a given interface,
I would like to add some ad zones to my site and register clicks,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.