我想合并小的二进制文件。但是有一个问题,Spark API binaryFiles()读取的数据与Hadoop FileSystem的API read()不同。 “ / data / test”中有一些二进制文件。断言失败:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
<body ng-app="plunker">
<div ng-controller="MainCtrl">
<table>
<thead>
<tr>
<td></td>
<th class="text-center" colspan="3">Install</th>
<th class="text-center" colspan="3">Uninstall</th>
</tr>
<tr>
<td></td>
<th>AppName1</th>
<th>AppName2</th>
<th>TOTAL</th>
<th>AppName1</th>
<th>AppName2</th>
<th>TOTAL</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="y in grid">
<td ng-repeat="x in y">{{x}}</td>
<td ng-repeat="x in y">{{x[0]}}</td>
</tr>
</tbody>
</table>
</div>
</body>
但是,如果文件是字符串格式,则可以传递此断言。为什么会发生此问题?