Bug 797116 - regex is failing with the new changed pathinfo format
Summary: regex is failing with the new changed pathinfo format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: HDFS
Version: pre-release
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Venky Shankar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 10:34 UTC by M S Vishwanath Bhat
Modified: 2016-06-01 01:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-06 05:52:37 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description M S Vishwanath Bhat 2012-02-24 10:34:28 UTC
Description of problem:
All map-reduce jobs are failing due to the new changed pathinfo format. regex in GlusterFSXattr.java  needs to be updated to get new pathinfo format.

Version-Release number of selected component (if applicable):
master

How reproducible:
always

Steps to Reproduce:
1. Run any map-reduce jobs with the master.
  
Actual results:
Fails with following exceptions. 

12/02/24 07:00:14 INFO mapred.FileInputFormat: Total input paths to process : 1
java.lang.IllegalArgumentException: No enum const class org.apache.hadoop.fs.glusterfs.GlusterFSXattr$LAYOUT.DSRPPPP
        at java.lang.Enum.valueOf(Enum.java:214)
        at org.apache.hadoop.fs.glusterfs.GlusterFSXattr$LAYOUT.valueOf(GlusterFSXattr.java:35)
        at org.apache.hadoop.fs.glusterfs.GlusterFSXattr.getHints(GlusterFSXattr.java:246)

Comment 1 Venky Shankar 2012-02-24 11:07:25 UTC
Sent the updated jar (in email). Please test it out and let me know. I'll send it out for review then.

Comment 2 M S Vishwanath Bhat 2012-02-24 14:11:08 UTC
With the new jar file I'm getting following error.


12/02/24 12:38:51 INFO mapred.FileInputFormat: Total input paths to process : 1
brick not of format hostname:path
java.io.IOException: Error getting hostname from brick
        at org.apache.hadoop.fs.glusterfs.GlusterFSXattr.brick2host(GlusterFSXattr.java:49)
        at org.apache.hadoop.fs.glusterfs.GlusterFSXattr.getHints(GlusterFSXattr.java:346)
        at org.apache.hadoop.fs.glusterfs.GlusterFSXattr.getPathInfo(GlusterFSXattr.java:75)

Comment 3 Anand Avati 2012-03-01 16:49:48 UTC
CHANGE: http://review.gluster.com/2844 (hdfs/plugin: Fix regex for parsing pathinfo string) merged in master by Vijay Bellur (vijay)


Note You need to log in before you can comment on or make changes to this bug.