You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2009/12/28 20:49:29 UTC

[jira] Created: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
-------------------------------------------------------

                 Key: HIVE-1015
                 URL: https://issues.apache.org/jira/browse/HIVE-1015
             Project: Hadoop Hive
          Issue Type: Improvement
          Components: Contrib
            Reporter: Carl Steinbach


Larry Ogrodnek has written a set of wrapper classes that make it possible
to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
more closely resembles conventional Hadoop MR programs.

A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html

The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj

We should add this to contrib.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796775#action_12796775 ] 

Namit Jain commented on HIVE-1015:
----------------------------------

Isn't that same as UDF/UDAF/UDTF ?

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796043#action_12796043 ] 

Carl Steinbach commented on HIVE-1015:
--------------------------------------

+1

It would be nice to have this in 0.5.0



> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796812#action_12796812 ] 

Todd Lipcon commented on HIVE-1015:
-----------------------------------

I think it's very slightly different:
- UDF - only a 1:1 mapping on a single column
- UDAF - requires implementation of Combiner-like functionality, best I can tell (haven't delved into this deeply, so apologies if you can do a reducer-only UDAF)
- UDTF - perhaps supports the same functionality, but the syntax is a little less obvious than the MAP/REDUCE syntax. I think this feature could be implemented by an AST transform and some kind of interface-changing wrapper class for UDTF that makes it look more like the usual MR API.

BTW, these thoughts definitely shouldn't block progress on this JIRA. I just wanted to throw the idea out there.

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain resolved HIVE-1015.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.5.0
     Hadoop Flags: [Reviewed]

Committed. Thanks Larry

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>            Assignee: Larry Ogrodnek
>             Fix For: 0.5.0
>
>         Attachments: HIVE-1015.patch, HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Larry Ogrodnek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Larry Ogrodnek updated HIVE-1015:
---------------------------------

    Attachment: HIVE-1015.patch

Here's a new patch with a .q file using an example mapper and reducer.

I also removed the dependency of these classes on apache commons lang, since there was only a single use of StringUtils.join(), and it's one less thing to specify on the classpath in the USING clause....

Thanks.

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch, HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796435#action_12796435 ] 

Namit Jain commented on HIVE-1015:
----------------------------------

Larry, can you also add a test .q file which uses the new wrapper classes in the map/reduce script.
We can definitely get it in 0.5

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796559#action_12796559 ] 

Todd Lipcon commented on HIVE-1015:
-----------------------------------

Related thought: would be nice to be able to write MAP/REDUCE as straight Java without having the overhead of streaming and serde. Is there a ticket already for this?

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Larry Ogrodnek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Larry Ogrodnek updated HIVE-1015:
---------------------------------

    Attachment: HIVE-1015.patch

Attached is a patch against the HIVE trunk adding the code that Carl describes.

Included is also a small change to common-build.xml to exclude inner classes from being treated as test cases themselves.

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>         Attachments: HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain reassigned HIVE-1015:
--------------------------------

    Assignee: Larry Ogrodnek

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>            Assignee: Larry Ogrodnek
>         Attachments: HIVE-1015.patch, HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797253#action_12797253 ] 

Namit Jain commented on HIVE-1015:
----------------------------------

+1

looks good - will commit if the tests pass

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>            Assignee: Larry Ogrodnek
>         Attachments: HIVE-1015.patch, HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1015) Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797340#action_12797340 ] 

Edward Capriolo commented on HIVE-1015:
---------------------------------------

JAVA, JAVA, JAVA. I love it. Even our 'external scripts' can be java now :)

> Java MapReduce wrapper for TRANSFORM/MAP/REDUCE scripts
> -------------------------------------------------------
>
>                 Key: HIVE-1015
>                 URL: https://issues.apache.org/jira/browse/HIVE-1015
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Contrib
>            Reporter: Carl Steinbach
>            Assignee: Larry Ogrodnek
>             Fix For: 0.5.0
>
>         Attachments: HIVE-1015.patch, HIVE-1015.patch
>
>
> Larry Ogrodnek has written a set of wrapper classes that make it possible
> to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
> more closely resembles conventional Hadoop MR programs.
> A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
> The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
> We should add this to contrib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.