Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/4725#discussion_r25157906
--- Diff: examples/src/main/scala/org/apache/spark/examples/HBaseTest.scala
---
@@ -36,7 +36,7 @@ object HBaseTest {
// Initialize hBase table if necessary
val admin = new HBaseAdmin(conf)
if (!admin.isTableAvailable(args(0))) {
- val tableDesc = new HTableDescriptor(args(0))
+ val tableDesc = new HTableDescriptor(TableName.valueOf(args(0)))
--- End diff --
Do you happen to know how long ago this constructor was added? I want to
figure out of this makes it incompatible with any HBase >= 0.98.7, which is
presumably the earliest version kind of 'supported' by the examples.
Are there other deprecations in the HBase examples that can be improved? I
suspect the examples were written for HBase ~0.94.x
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]