Hi,
I am running hspark against hbase server but the most simple select count(*) from myTable query throws AnalysisException: Table or view not found error.
hbase-site.xml and core-site.xml are configured properly, visible to sparkContext.hadoopConfiguration, and working properly on other projects.
hbaseContext.catalog.listTables().show shows no tables at all. Am I missing some necessary initialization?
My code is:
class MyTests extends FunSuite with BeforeAndAfterAll {
val spark = SparkSession.builder().master("local[1]").getOrCreate()
val hbaseContext = new HBaseSparkSession(spark.sparkContext)
test("sanity test"){
import hbaseContext.sql
val df = sql("select * from myTable")
df.count()
}
}
Hi,
I am running hspark against hbase server but the most simple
select count(*) from myTablequery throwsAnalysisException: Table or view not founderror.hbase-site.xml and core-site.xml are configured properly, visible to
sparkContext.hadoopConfiguration, and working properly on other projects.hbaseContext.catalog.listTables().showshows no tables at all. Am I missing some necessary initialization?My code is: