This is due to a change in Hive.  HCATALOG-57 and 59 are being worked on to 
address this.

Alan.

On Jul 11, 2011, at 1:57 PM, Eric Yang wrote:

> Hi all,
> 
> Trying to build hcatalog from trunk, and I got this exception:
> 
> compile-src:
>    [javac] Compiling 58 source files to 
> /Users/eyang/sandbox/hcatalog/trunk/build/classes
>    [javac] 
> /Users/eyang/sandbox/hcatalog/trunk/src/java/org/apache/hcatalog/cli/HCatDriver.java:119:
>  cannot find symbol
>    [javac] symbol  : method getDefaultDatabasePath(java.lang.String)
>    [javac] location: class org.apache.hadoop.hive.metastore.Warehouse
>    [javac]           Path dbPath = new 
> Warehouse(conf).getDefaultDatabasePath(dbName);
>    [javac]                                            ^
>    [javac] 
> /Users/eyang/sandbox/hcatalog/trunk/src/java/org/apache/hcatalog/cli/SemanticAnalysis/CreateTableHook.java:193:
>  cannot find symbol
>    [javac] symbol  : method 
> getDefaultTablePath(java.lang.String,java.lang.String)
>    [javac] location: class org.apache.hadoop.hive.metastore.Warehouse
>    [javac]         tblDir = 
> wh.getDnsPath(wh.getDefaultTablePath(context.getHive().getCurrentDatabase(), 
> tableName).getParent());
>    [javac]                                  ^
>    [javac] 
> /Users/eyang/sandbox/hcatalog/trunk/src/java/org/apache/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java:215:
>  cannot find symbol
>    [javac] symbol  : method getDefaultDatabasePath(java.lang.String)
>    [javac] location: class org.apache.hadoop.hive.metastore.Warehouse
>    [javac]       AuthUtils.authorize(wh.getDefaultDatabasePath(name), action, 
> cntxt.getConf());
>    [javac]                             ^
>    [javac] 
> /Users/eyang/sandbox/hcatalog/trunk/src/java/org/apache/hcatalog/listener/NotificationListener.java:73:
>  org.apache.hcatalog.listener.NotificationListener is not abstract and does 
> not override abstract method 
> onAlterPartition(org.apache.hadoop.hive.metastore.events.AlterPartitionEvent) 
> in org.apache.hadoop.hive.metastore.MetaStoreEventListener
>    [javac] public class NotificationListener extends MetaStoreEventListener{
>    [javac]        ^
>    [javac] Note: Some input files use or override a deprecated API.
>    [javac] Note: Recompile with -Xlint:deprecation for details.
>    [javac] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 4 errors
> 
> BUILD FAILED
> /Users/eyang/sandbox/hcatalog/trunk/build.xml:230: Compile failed; see the 
> compiler error output for details.
> 
> How to address this issue?
> 
> regards,
> Eric

Reply via email to