Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import org.apache.hadoop.conf.Configuration;
- import org.apache.hadoop.fs.Path;
- import org.apache.orc.OrcFile;
- import org.apache.orc.Reader;
- public class OrcUtil {
- public static void main(String[] args) {
- Configuration conf = new Configuration();
- try {
- Reader reader = OrcFile.createReader(new Path("webhdfs://hadoop-master:50070/user/hive/warehouse/test_orc/000000_0"), OrcFile.readerOptions(conf));
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement