Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import java.io.IOException;
  2.  
  3. import org.apache.hadoop.conf.Configuration;
  4. import org.apache.hadoop.fs.Path;
  5. import org.apache.orc.OrcFile;
  6. import org.apache.orc.Reader;
  7.  
  8. public class OrcUtil {
  9. public static void main(String[] args) {
  10. Configuration conf = new Configuration();
  11. try {
  12. Reader reader = OrcFile.createReader(new Path("webhdfs://hadoop-master:50070/user/hive/warehouse/test_orc/000000_0"), OrcFile.readerOptions(conf));
  13. } catch (IOException e) {
  14. e.printStackTrace();
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement