> On Sept. 12, 2012, 8:58 p.m., Travis Crawford wrote:
> > hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestHCatStorerWrapper.java,
> >  line 42
> > <https://reviews.apache.org/r/7043/diff/2/?file=152685#file152685line42>
> >
> >     How about using guava Files:
> >     
> >     File tmpExternalDir = Files.createTempDir();
> >     
> >     
> > http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/io/Files.html#createTempDir()
> 
> Feng Peng wrote:
>     Good point. Fixed.

Actually the call creates the dir and failed the test with "output dir already 
exists" error, so we will just use the old one.


- Feng


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7043/#review11428
-----------------------------------------------------------


On Sept. 11, 2012, 9:59 p.m., Feng Peng wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7043/
> -----------------------------------------------------------
> 
> (Updated Sept. 11, 2012, 9:59 p.m.)
> 
> 
> Review request for hcatalog, Dmitriy Ryaboy and Travis Crawford.
> 
> 
> Description
> -------
> 
> We added a property called HCAT_PIG_STORER_EXTERNAL_LOCATION to the 
> UDFContext of HCatStorer: when the property is set AND the table type is 
> EXTERNAL, HCatStorer writes the data to the external path the property 
> specifies. 
> 
> 
> This addresses bug hcatalog-500.
>     https://issues.apache.org/jira/browse/hcatalog-500
> 
> 
> Diffs
> -----
> 
>   hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java 
> c46db33 
>   
> hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/HCatStorerWrapper.java
>  PRE-CREATION 
>   
> hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestHCatStorerWrapper.java
>  PRE-CREATION 
>   src/java/org/apache/hcatalog/common/HCatConstants.java 626d91b 
>   src/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java 
> 8e692dc 
>   src/java/org/apache/hcatalog/mapreduce/FosterStorageHandler.java 3f368d8 
> 
> Diff: https://reviews.apache.org/r/7043/diff/
> 
> 
> Testing
> -------
> 
> Added a corresponding unit test. Also tested on our cluster.
> 
> 
> Thanks,
> 
> Feng Peng
> 
>

Reply via email to