Hi Pei, This sounds like a classpath issue -- specifically that hive-default.xml is not on your Eclipse project's classpath. This should be setup automatically if you follow the instructions here: http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup
Thanks. Carl On Mon, Jan 24, 2011 at 2:49 PM, Edward Capriolo <[email protected]>wrote: > On Mon, Jan 24, 2011 at 4:19 PM, Pei HE <[email protected]> wrote: > > Hi, > > I am trying to debug Hive in Eclipse. > > > > My problem is Hive doesn't work with Hadoop, when the command line is > > invoked in Eclipse. > > > > The version of Hadoop is 0.19.2. > > > > There is no problem when I run Hive by ./build/dist/bin/hive. But, > > when I run the class CliDriver in Eclipse, it cannot find the tables I > > have defined. > > Moreover, when I created a table, java.io.FileNotFoundException was > > thrown by RawLocalFileSystem.java. > > > > The last line of code in hive is in Warehouse.java:143. > > return (fs.mkdirs(f) || fs.getFileStatus(f).isDir()); > > Hive failed to fs.mkdirs(f), and cause a exception when check the > > status of a non-exist file. > > > > It seems the file systems that access in Eclipse and in terminal are > different. > > > > Could anyone can help me about that? > > > > Thanks > > -- > > Pei > > > > We are deprecating support of hadoop pre 0.20.0 so unless you really > need to support 19.2 You better consider moving up. > > Edward >
