Have you checked that hbase-site.xml on every region server contains the 
wal.codec entry as shown below ?

Thanks

On Dec 7, 2014, at 12:37 AM, "Eng. Ahmed Hussien" <[email protected]> wrote:

> Dears,
> Good day...
> I'm having a problem while creating an index knowing that I'm using *:
> 
> (below hbase-site.xml and the error)
> 
> 1- single node (stand alone server)**
> **2- hbase 0.98.8 (upgraded from hbase 0.98.3)**
> **3- hadoop 2.2**
> **4- phoenix 4.2.0**
> **5- The sql command:     CREATE INDEX "histdex" ON 
> "History"("Records"."timestamp" ASC)";**
> **6- The **error is :*
> /**********************************/
> java.sql.SQLException: ERROR 1029 (42Y88): Mutable secondary indexes must 
> have the hbase.regionserver.wal.codec property set to 
> org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec in the 
> hbase-sites.xml of every region server tableName=histdex
>    at 
> org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:336)
>    at 
> org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:133)
>    at 
> org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:859)
>    at 
> org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:95)
>    at 
> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:260)
>    at 
> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:252)
>    at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>    at 
> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:250)
>    at 
> org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1037)
>    at uaCore.ConnConf.Conn(ConnConf.java:11)
>    at uaCore.operate.main(operate.java:5)
> /****************************************/
> *7-the hbase-site.xml*
> /***************************************/
> <configuration>
> 
> <property>
> 
> <name>hbase.rootdir</name>
> 
> <value>hdfs://localhost:9000/hbase</value>
> 
> </property>
> 
> <property>
> 
> <name>hbase.defaults.for.version.skip</name>
> 
> <value>true</value>
> 
> </property>
> 
> <property>
> <name>hbase.region.server.rpc.scheduler.factory.class</name>
> <value>org.apache.phoenix.hbase.index.ipc.PhoenixIndexRpcSchedulerFactory</value>
>      <description>Factory to create the Phoenix RPC Scheduler that knows to 
> put index updates into index queues</description>
> 
> </property>
> 
> <property>
>      <name>hbase.regionserver.wal.codec</name>
> <value>org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec</value>
>      <description>Factory to create the Phoenix RPC Scheduler that knows to 
> put index updates into index queues</description>
> 
> </property>
> 
> <property>
> 
> <name>hbase.cluster.distributed</name>
> 
> <value>true</value>
> 
> </property>
> 
> <property>
> 
> <name>hbase.zookeeper.quorum</name>
> 
> <value>localhost</value>
> 
> </property>
> 
> <property>
> 
> <name>dfs.replication</name>
> 
> <value>1</value>
> 
> </property>
> 
> <property>
> 
> <name>hbase.zookeeper.property.clientPort</name>
> 
> <value>2181</value>
> 
> </property>
> <property>
> <name>hbase.zookeeper.property.dataDir</name>
> <value>/home/hduser/hbase/zookeeper</value>
> </property>
> </configuration>
> /***********************************/

Reply via email to