Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absorb after Consolidation doesn't work! #21

Open
derrickburns opened this issue Mar 14, 2013 · 0 comments
Open

Absorb after Consolidation doesn't work! #21

derrickburns opened this issue Mar 14, 2013 · 0 comments

Comments

@derrickburns
Copy link

I have two Pails that use the same PailStructure. One is empty. The other is not. The non-empty one has been consolidated. I cannot absorb the non-empty one into the empty one.

Exception in thread "main" java.lang.IllegalArgumentException: 1/EMOTICON/a4/consa49b6198-b8fd-45b8-a3df-c3d3c4bec4b1 is not valid with the pail structure {structure={"@class":"com.rincaro.mapreduce.store.timeseriesstore.TemplateTimeSeriesPailStructure","keyDescriptor":{"@class":"com.rincaro.timeseries.itimeseries.text.SimpleTextKeyDescriptor"},"template":"${type}"}, args={compressionCodec=gzip, compressionType=block}, format=SequenceFile} --> [1, EMOTICON, a4]
    at com.backtype.hadoop.pail.Pail.checkValidStructure(Pail.java:565)
    at com.backtype.hadoop.pail.Pail.checkCombineValidity(Pail.java:308)
    at com.backtype.hadoop.pail.Pail.absorb(Pail.java:443)
    at com.backtype.hadoop.pail.Pail.absorb(Pail.java:431)

In my example, my pail structure has two levels. The issue is that after consolidation, the directory structure has an extra level of indirection below the directories created to reflect the target structure. This is not handled properly.

Now, I could change my implementation of isValidTarget() to work around the problem. But it does not solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant