HTRACE-38. Add apache license header to src/main/site/markdown/index.md (cmccabe)
ADDEDNUM that adds license to more markdown files and ups our rat
version.

Signed-off-by: stack <stack@duboce.net>
diff --git a/README.md b/README.md
index 8d5bb3c..b3b486e 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,20 @@
+<!--
+ 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.
+-->
+
 HTrace
 ======
 HTrace is a tracing framework for use with distributed systems written in java.
diff --git a/htrace-core/src/main/java/org/apache/htrace/impl/MilliSpan.java b/htrace-core/src/main/java/org/apache/htrace/impl/MilliSpan.java
index 7f3e81a..597b566 100644
--- a/htrace-core/src/main/java/org/apache/htrace/impl/MilliSpan.java
+++ b/htrace-core/src/main/java/org/apache/htrace/impl/MilliSpan.java
@@ -283,7 +283,7 @@
     return writer.toString();
   }
 
-  private static long parseUnsignedLong(String s) {
+  private static long parseUnsignedHexLong(String s) {
     return new BigInteger(s, 16).longValue();
   }
 
@@ -297,15 +297,15 @@
       builder.begin(root.get("b").asLong()).
               end(root.get("e").asLong()).
               description(root.get("d").asText()).
-              traceId(parseUnsignedLong(root.get("i").asText())).
-              spanId(parseUnsignedLong(root.get("s").asText())).
+              traceId(parseUnsignedHexLong(root.get("i").asText())).
+              spanId(parseUnsignedHexLong(root.get("s").asText())).
               processId(root.get("r").asText());
       JsonNode parentsNode = root.get("p");
       LinkedList<Long> parents = new LinkedList<Long>();
       for (Iterator<JsonNode> iter = parentsNode.elements();
            iter.hasNext(); ) {
         JsonNode parentIdNode = iter.next();
-        parents.add(parseUnsignedLong(parentIdNode.asText()));
+        parents.add(parseUnsignedHexLong(parentIdNode.asText()));
       }
       builder.parents(parents);
       JsonNode traceInfoNode = root.get("n");
diff --git a/htrace-flume/README.md b/htrace-flume/README.md
index 32bbb88..9181fc8 100644
--- a/htrace-flume/README.md
+++ b/htrace-flume/README.md
@@ -1,3 +1,20 @@
+<!--
+ 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.
+-->
+
 htrace-flume
 ============
 
diff --git a/htrace-hbase/README.md b/htrace-hbase/README.md
index b976d70..d0c41f5 100644
--- a/htrace-hbase/README.md
+++ b/htrace-hbase/README.md
@@ -1,3 +1,20 @@
+<!--
+ 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.
+-->
+
 htrace-hbase
 ============
 
diff --git a/pom.xml b/pom.xml
index d531fef..2d42b5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -139,7 +139,7 @@
         <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
-          <version>0.10</version>
+          <version>0.11</version>
           <executions>
             <execution>
               <phase>package</phase>