GithubHelp home page GithubHelp logo

Comments (12)

chrajeshbabu avatar chrajeshbabu commented on August 19, 2024

Let us check and fix it quickly. Thanks for reporting.

from hindex.

anoopsjohn avatar anoopsjohn commented on August 19, 2024

Is this table IndexedHTableDesc now? Can u try alter the table with IndexedHTableDesc once and then do the run of the MR?

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024

Yes, after run the map/reduce job, it can create a index table. But when run the map/reduce job, it try to find the IndexHtableDesc from /tmp/hbase-${user}/${table-name}/.tableinfo path, but I cannot find it from the local machine. So it always return null.

from hindex.

chrajeshbabu avatar chrajeshbabu commented on August 19, 2024

From TableIndexer before running mapreduce job, we are creating index table
String tableNameToIndex = tableName[0];
IndexUtils.createIndexTable(tableNameToIndex, conf, cfs);
createMapReduceJob(tableNameToIndex, conf, caching, versions);

So there should be index table present always.
One more thing is you are using standalone hbase cluster?
This means your mapreduce job will run in local mode right?

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024
  1. yes, though no data been put into hbase, but the index table can be create in the hbase.

2.I do not use standlone hbase cluster, I have one master and three region server, and the hadoop is also cluster mode, there are three datanode.

from hindex.

chrajeshbabu avatar chrajeshbabu commented on August 19, 2024

I see.
I thought its standalone mode by seeing this path /tmp/hbase-${user}/${table-name}/.tableinfo
Any way we have just now also tested. Its working fine in our case. Can you tell your configurations?

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024

It return null at execute IndexUtils.getTableInfoFilePat(),
when execute
Path path = FSUtils.getTablePath(FSUtils.getRootDir(conf), tableName);
So i print the path, it output: /tmp/hbase-${user}/..../.tableinfo.
I donot know this path is hdfs or local path.
Ask a question, you will save index table desc in some tmp path?But i cannot find them both in hdfs and local machine file system.

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024

which configuration do you mean? hbase cluster or map/reduce?
hbase cluster configuration just as normal.
map/reduce I extractor com.apache.hadoop.hbase.filter and com.apache.hadoop.hbase.index these two package and build the jar with


hbase.zookeeper.quorum
ubuntu-zk1


tablename.to.index
....

<property>
<name>table.columns.index</name>
<value>....</value>
<property>
   <name>hbase.defaults.for.version.skip</name>
   <value>true</value>
</property>
and run the map/reduce job.

from hindex.

chrajeshbabu avatar chrajeshbabu commented on August 19, 2024

We are storing any thing tmp directory. Index table will be created as normal table by master.
The path is default path from hbase-default.xml

hbase.rootdir
file:///tmp/hbase-${user.name}/hbase

It should be configured in hbase-site.xml with hbase root directory in hdfs(Ex: hdfs://ip:port/hbase)
Can you check hbase-site.xml configurations are loaded properly while initializing job?

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024

OK, i get the reason. I think the hbase.rootdir should be the cluster configuration, so i do not configure it in the map/reduce job. After configure it correctly, it can index the data. Sorry for that.

from hindex.

hy2014 avatar hy2014 commented on August 19, 2024

thank you very much!

from hindex.

chrajeshbabu avatar chrajeshbabu commented on August 19, 2024

No problem. Thanks

from hindex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.