Repository: incubator-reef
Updated Branches:
  refs/heads/master f1f8df847 -> 2516ba49b


[REEF-656] Add csproj for Org.Apache.REEF.Examples.DriverRestart

This addressed the issue by
  * Adding a project for Org.Apache.REEF.Examples.DriverRestart.

JIRA:
  [REEF-656](https://issues.apache.org/jira/browse/REEF-656)

This closes #428

Andrew Chung <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/2516ba49
Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/2516ba49
Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/2516ba49

Branch: refs/heads/master
Commit: 2516ba49b704aa080fd0c9097b9543472e7a34a6
Parents: f1f8df8
Author: Andrew Chung <[email protected]>
Authored: Thu Aug 27 10:59:25 2015 -0700
Committer: Julia Wang <[email protected]>
Committed: Mon Aug 31 15:27:42 2015 -0700

----------------------------------------------------------------------
 .../DriverRestart.cs                            |  34 ++++++++++++
 ...rg.Apache.REEF.Examples.DriverRestart.csproj |  27 ++++++++++
 .../Properties/AssemblyInfo.cs                  |  54 +++++++++++++++++++
 .../Readme.md                                   |   5 ++
 lang/cs/Org.Apache.REEF.sln                     | Bin 32048 -> 33120 bytes
 5 files changed, 120 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2516ba49/lang/cs/Org.Apache.REEF.Examples.DriverRestart/DriverRestart.cs
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Examples.DriverRestart/DriverRestart.cs 
b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/DriverRestart.cs
new file mode 100644
index 0000000..55e8889
--- /dev/null
+++ b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/DriverRestart.cs
@@ -0,0 +1,34 @@
+/*
+ * 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.
+ */
+
+namespace Org.Apache.REEF.Examples.DriverRestart
+{
+    /// <summary>
+    /// A REEF example that restarts the driver while having its Evaluators 
preserved.
+    /// IMPORTANT: Can only be run on HDInsight clusters with 
+    /// yarn.resourcemanager.am.max-attempts set to greater than or equal to 2.
+    /// </summary>
+    public sealed class DriverRestart
+    {
+        public static void Main(string[] args)
+        {
+            // TODO[REEF-581]: Fill in method.
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2516ba49/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Org.Apache.REEF.Examples.DriverRestart.csproj
----------------------------------------------------------------------
diff --git 
a/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Org.Apache.REEF.Examples.DriverRestart.csproj
 
b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Org.Apache.REEF.Examples.DriverRestart.csproj
new file mode 100644
index 0000000..c874111
--- /dev/null
+++ 
b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Org.Apache.REEF.Examples.DriverRestart.csproj
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <Import 
Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
 
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
 />
+  <PropertyGroup>
+    <ProjectGuid>{EAB1753E-491E-449E-BCF3-50127DE63EE1}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Org.Apache.REEF.Examples.DriverRestart</RootNamespace>
+    <AssemblyName>Org.Apache.REEF.Examples.DriverRestart</AssemblyName>
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == 
'*Undefined*'">..</SolutionDir>
+  </PropertyGroup>
+  <PropertyGroup>
+    <BuildPackage>false</BuildPackage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+  </PropertyGroup>
+  <Import Project="$(SolutionDir)\build.props" />
+  <ItemGroup>
+    <Compile Include="DriverRestart.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="Readme.md" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2516ba49/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git 
a/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Properties/AssemblyInfo.cs 
b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..1f5ab22
--- /dev/null
+++ b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Properties/AssemblyInfo.cs
@@ -0,0 +1,54 @@
+/**
+ * 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.
+ */
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Org.Apache.REEF.Examples.DriverRestart")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Org.Apache.REEF.Examples.DriverRestart")]
+[assembly: AssemblyCopyright("Copyright ©  2015")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed 
to COM
+[assembly: Guid("eab1753e-491e-449e-bcf3-50127de63ee1")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision 
Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("0.13.0.0")]
+[assembly: AssemblyFileVersion("0.13.0.0")]

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2516ba49/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Readme.md
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Readme.md 
b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Readme.md
new file mode 100644
index 0000000..f62b8a5
--- /dev/null
+++ b/lang/cs/Org.Apache.REEF.Examples.DriverRestart/Readme.md
@@ -0,0 +1,5 @@
+# DriverRestart
+This project contains an example of a REEF Program where the Driver crashes 
with Evaluators retained on HDInsight YARN.
+
+## Running it
+Simply run the executable, `DriverRestart.exe`, on an HDInsight YARN headnode.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2516ba49/lang/cs/Org.Apache.REEF.sln
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.sln b/lang/cs/Org.Apache.REEF.sln
index bbbf938..409cbf4 100644
Binary files a/lang/cs/Org.Apache.REEF.sln and b/lang/cs/Org.Apache.REEF.sln 
differ

Reply via email to