Examples of locateRegions()


Examples of org.apache.hadoop.hbase.client.HConnection.locateRegions()

    public static boolean tableRegionsOnline(Configuration conf, PTable table) {
        HConnection hcon = null;

        try {
            hcon = HConnectionManager.getConnection(conf);
            List<HRegionLocation> locations = hcon.locateRegions(table.getTableName().getBytes());

            for (HRegionLocation loc : locations) {
                HRegionInterface server = hcon.getHRegionConnection(
                    loc.getHostname(), loc.getPort());
                server.getRegionInfo(loc.getRegionInfo().getRegionName());
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HConnection.locateRegions()

    public static boolean tableRegionsOnline(Configuration conf, PTable table) {
        HConnection hcon = null;

        try {
            hcon = HConnectionManager.getConnection(conf);
            List<HRegionLocation> locations = hcon.locateRegions(
                org.apache.hadoop.hbase.TableName.valueOf(table.getTableName().getBytes()));

            for (HRegionLocation loc : locations) {
                try {
                    ServerName sn = loc.getServerName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.