Accumulo-Pull-Requests - Build # 1557 - Still Failing

2018-09-17 Thread Apache Jenkins Server
The Apache Jenkins build system has built Accumulo-Pull-Requests (build #1557)

Status: Still Failing

Check console output at 
https://builds.apache.org/job/Accumulo-Pull-Requests/1557/ to view the results.

Accumulo-Pull-Requests - Build # 1556 - Failure

2018-09-17 Thread Apache Jenkins Server
The Apache Jenkins build system has built Accumulo-Pull-Requests (build #1556)

Status: Failure

Check console output at 
https://builds.apache.org/job/Accumulo-Pull-Requests/1556/ to view the results.

[jira] [Commented] (ACCUMULO-4807) Provide means to determine if bulk import was successful

2018-09-17 Thread Mark Owens (JIRA)


[ 
https://issues.apache.org/jira/browse/ACCUMULO-4807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16617730#comment-16617730
 ] 

Mark Owens commented on ACCUMULO-4807:
--

[~etcoleman], given the monitoring work you are working on, is this ticket 
still relevant or will it be handled by your work?

> Provide means to determine if bulk import was successful
> 
>
> Key: ACCUMULO-4807
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4807
> Project: Accumulo
>  Issue Type: Sub-task
>  Components: master, tserver
>Reporter: Mark Owens
>Assignee: Mark Owens
>Priority: Major
> Fix For: 2.0.0
>
>
> One thing customers would like to be able to do is know whether a bulk import 
> that was launched was successful. If a client launches a bulk import and then 
> dies (a rare case, but it happens), there's no way to know if that bulk 
> import completed or is still in progress. Possibly, if bulk import returned a 
> transaction ID, they'd be able to inquire whether that transaction has 
> completed. Not sure if think that's currently possible via the java client, 
> but operators do consistently monitor FATEs via the shell. It'd be nice to do 
> that via the java client so we can monitor programmatically.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] jmark99 commented on issue #575: Add splits to table at time of table creation #573

2018-09-17 Thread GitBox
jmark99 commented on issue #575: Add splits to table at time of table creation 
#573
URL: https://github.com/apache/accumulo/pull/575#issuecomment-422067672
 
 
   Changes were merged into master closing #573 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jmark99 closed pull request #575: Add splits to table at time of table creation #573

2018-09-17 Thread GitBox
jmark99 closed pull request #575: Add splits to table at time of table creation 
#573
URL: https://github.com/apache/accumulo/pull/575
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/core/src/main/java/org/apache/accumulo/core/client/admin/InitialTableState.java
 
b/core/src/main/java/org/apache/accumulo/core/client/admin/InitialTableState.java
new file mode 100644
index 00..eb12bc9038
--- /dev/null
+++ 
b/core/src/main/java/org/apache/accumulo/core/client/admin/InitialTableState.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.core.client.admin;
+
+/**
+ * Creation mode for table creation.
+ *
+ * @since 2.0.0
+ */
+public enum InitialTableState {
+  /*
+   * Set if table is to be created in OFFLINE mode.
+   */
+  OFFLINE,
+  /*
+   * Used if table is to be created in ONLINE mode.
+   */
+  ONLINE
+}
diff --git 
a/core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java
 
b/core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java
index 9c97f54b0d..01b2fdddc7 100644
--- 
a/core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java
+++ 
b/core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java
@@ -20,6 +20,7 @@
 import static java.util.Objects.requireNonNull;
 
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.EnumSet;
 import java.util.HashMap;
@@ -27,7 +28,7 @@
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Set;
-import java.util.stream.Collectors;
+import java.util.SortedSet;
 
 import org.apache.accumulo.core.client.AccumuloException;
 import org.apache.accumulo.core.client.IteratorSetting;
@@ -44,6 +45,8 @@
 import org.apache.accumulo.core.util.LocalityGroupUtil;
 import org.apache.hadoop.io.Text;
 
+import com.google.common.collect.ImmutableSortedSet;
+
 /**
  * This object stores table creation parameters. Currently includes: {@link 
TimeType}, whether to
  * include default iterators, and user-specified initial properties
@@ -55,13 +58,17 @@
   private static final TimeType DEFAULT_TIME_TYPE = TimeType.MILLIS;
   private TimeType timeType = DEFAULT_TIME_TYPE;
 
+  private static final InitialTableState DEFAULT_CREATION_MODE = 
InitialTableState.ONLINE;
+  private InitialTableState initialTableState = DEFAULT_CREATION_MODE;
+
   private boolean limitVersion = true;
 
   private Map properties = Collections.emptyMap();
   private Map samplerProps = Collections.emptyMap();
   private Map summarizerProps = Collections.emptyMap();
   private Map localityProps = Collections.emptyMap();
-  private Map iteratorProps = new HashMap<>();
+  private final Map iteratorProps = new HashMap<>();
+  private SortedSet splitProps = Collections.emptySortedSet();
 
   private void checkDisjoint(Map props, Map 
derivedProps,
   String kind) {
@@ -103,6 +110,29 @@ public NewTableConfiguration withoutDefaultIterators() {
 return this;
   }
 
+  /**
+   * Create the new table in an offline state.
+   *
+   * @return this
+   *
+   * @since 2.0.0
+   */
+  public NewTableConfiguration createOffline() {
+this.initialTableState = InitialTableState.OFFLINE;
+return this;
+  }
+
+  /**
+   * Return value indicating whether table is to be created in offline or 
online mode.
+   *
+   * @return 1 if true; 0 otherwise.
+   *
+   * @since 2.0.0
+   */
+  public InitialTableState getInitialTableState() {
+return initialTableState;
+  }
+
   /**
* Sets additional properties to be applied to tables created with this 
configuration. Additional
* calls to this method replace properties set by previous calls.
@@ -142,6 +172,17 @@ public NewTableConfiguration 
setProperties(Map props) {
 return Collections.unmodifiableMap(propertyMap);
   }
 
+  /**
+   * Return Collection of split values.
+   *
+   * @return Collection containing splits associated with this